]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: implement inode change count
authorDave Chinner <dchinner@redhat.com>
Thu, 27 Jun 2013 06:04:59 +0000 (16:04 +1000)
committerBen Myers <bpm@sgi.com>
Fri, 28 Jun 2013 18:00:05 +0000 (13:00 -0500)
commit5e53c2f42a1f3d23f163662a963113db80619ce7
tree5a611ba5c6644992d3465d7f1b18267a9f5b43bf
parentf60fc76e23c50c9d1ca1ca304d9de86d00483950
xfs: implement inode change count

For CRC enabled filesystems, add support for the monotonic inode
version change counter that is needed by protocols like NFSv4 for
determining if the inode has changed in any way at all between two
unrelated operations on the inode.

This bumps the change count the first time an inode is dirtied in a
transaction. Since all modifications to the inode are logged, this
will catch all changes that are made to the inode, including
timestamp updates that occur during data writes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_super.c
fs/xfs/xfs_trans_inode.c