]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't update atime on RO subvolumes
authorAlexander Block <ablock84@googlemail.com>
Fri, 15 Jun 2012 07:49:33 +0000 (09:49 +0200)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 19:41:38 +0000 (15:41 -0400)
commitfe5b26ed53e46a53756870a9e4b6ed5265f4469a
treecb2ec5d12e7427a1cec9c41c7576118bb112b1dd
parent9b73d52746c290d830600c75e7a218d5499e9d0c
Btrfs: don't update atime on RO subvolumes

Before the update_time inode operation was indroduced, it was
not possible to prevent updates of atime on RO subvolumes. VFS
was only able to check for RO on the mount, but did not know
anything about btrfs subvolumes.

btrfs_update_time does now check if the root is RO and skip
updating of times.

Signed-off-by: Alexander Block <ablock84@googlemail.com>
fs/btrfs/inode.c
fs/inode.c