]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NFS: Use dentry->d_time to store the parent directory verifier.
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 14 Jul 2007 21:36:45 +0000 (17:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 19 Jul 2007 19:21:39 +0000 (15:21 -0400)
This will free up the d_fsdata field for other use.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

index 322141f4ab4810f5230898c2f1773e5290476242..0fa1dbcdadb98ec52dae9b46fdd1bf038744100e 100644 (file)
@@ -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)