]> 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)
commit8d4bd6b2a0157612ce3df28f07e03a17ae0629b5
treecb2ec5d12e7427a1cec9c41c7576118bb112b1dd
parent5240b01e878f6080e41fc08053cd4b3f07aea9c5
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