aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-01 21:42:01 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:20:06 -0400
commitd75340cc4de5c187fbf0bba234309ca86cf0a2fb (patch)
treeaa53e3248bf3d61283f94187ffc83b18fa06bb7a /include/linux
parent216d5d06883edfaf992ada0d72a2a22fdfdbd296 (diff)
NFSv4: Fix nfs_atomic_open() to set the verifier on negative dentries too
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 8f632bd854af..992931cd301e 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -240,6 +240,11 @@ static inline int NFS_USE_READDIRPLUS(struct inode *inode)
240 return test_bit(NFS_INO_ADVISE_RDPLUS, &NFS_FLAGS(inode)); 240 return test_bit(NFS_INO_ADVISE_RDPLUS, &NFS_FLAGS(inode));
241} 241}
242 242
243static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf)
244{
245 dentry->d_time = verf;
246}
247
243/** 248/**
244 * nfs_save_change_attribute - Returns the inode attribute change cookie 249 * nfs_save_change_attribute - Returns the inode attribute change cookie
245 * @dir - pointer to parent directory inode 250 * @dir - pointer to parent directory inode