Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3062c532 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent be879c4e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)