aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-09-28 14:20:12 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:18:46 -0400
commit7957c1418f4b6c66e28d4ac3c4d7a8c19d526c48 (patch)
tree5769b3af76c91866a4ccaa607635c86755239a51 /include/linux/nfs_fs.h
parent68e8a70d3cae23716f6b2b3872eba10eccea148c (diff)
NFS: fix nfs_verify_change_attribute
We always want to check that the verifier and directory cache_change_attribute match. This also allows us to remove the 'wraparound hack' for the cache_change_attribute. If we're only checking for equality, then we don't care about wraparound issues. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 5b42fef0baf0..f45161363be2 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -277,7 +277,7 @@ static inline long nfs_save_change_attribute(struct inode *inode)
277static inline int nfs_verify_change_attribute(struct inode *inode, unsigned long chattr) 277static inline int nfs_verify_change_attribute(struct inode *inode, unsigned long chattr)
278{ 278{
279 return !nfs_caches_unstable(inode) 279 return !nfs_caches_unstable(inode)
280 && time_after_eq(chattr, NFS_I(inode)->cache_change_attribute); 280 && chattr == NFS_I(inode)->cache_change_attribute;
281} 281}
282 282
283/* 283/*