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)
commitdc037ad7d24f3711e431a45c053b5d425995e9e4
tree5a611ba5c6644992d3465d7f1b18267a9f5b43bf
parentddf6ad01434e72bfc8423e1619abdaa0af9394a8
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