From: Trond Myklebust Date: Sat, 14 Jul 2007 21:36:45 +0000 (-0400) Subject: NFS: Use dentry->d_time to store the parent directory verifier. X-Git-Tag: v3.12-rc1~27848^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3062c532ad410fe0e8320566fe2879a396be6701;p=kernel%2Fkernel-generic.git NFS: Use dentry->d_time to store the parent directory verifier. This will free up the d_fsdata field for other use. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 322141f..0fa1dbc 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -654,7 +654,7 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry) if (IS_ROOT(dentry)) return 1; - verf = (unsigned long)dentry->d_fsdata; + verf = dentry->d_time; if (nfs_caches_unstable(dir) || verf != NFS_I(dir)->cache_change_attribute) return 0; @@ -663,7 +663,7 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry) static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf) { - dentry->d_fsdata = (void *)verf; + dentry->d_time = verf; } static void nfs_refresh_verifier(struct dentry * dentry, unsigned long verf)