diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-14 17:36:45 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-19 15:21:39 -0400 |
| commit | 3062c532ad410fe0e8320566fe2879a396be6701 (patch) | |
| tree | a6187e4988378bd6cc9712f0881417e0f360917b | |
| parent | be879c4e249a8875d7129f3b0c1bb62584dafbd8 (diff) | |
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 <Trond.Myklebust@netapp.com>
| -rw-r--r-- | fs/nfs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 322141f4ab48..0fa1dbcdadb9 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) | |||
| 654 | 654 | ||
| 655 | if (IS_ROOT(dentry)) | 655 | if (IS_ROOT(dentry)) |
| 656 | return 1; | 656 | return 1; |
| 657 | verf = (unsigned long)dentry->d_fsdata; | 657 | verf = dentry->d_time; |
| 658 | if (nfs_caches_unstable(dir) | 658 | if (nfs_caches_unstable(dir) |
| 659 | || verf != NFS_I(dir)->cache_change_attribute) | 659 | || verf != NFS_I(dir)->cache_change_attribute) |
| 660 | return 0; | 660 | return 0; |
| @@ -663,7 +663,7 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry) | |||
| 663 | 663 | ||
| 664 | static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf) | 664 | static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf) |
| 665 | { | 665 | { |
| 666 | dentry->d_fsdata = (void *)verf; | 666 | dentry->d_time = verf; |
| 667 | } | 667 | } |
| 668 | 668 | ||
| 669 | static void nfs_refresh_verifier(struct dentry * dentry, unsigned long verf) | 669 | static void nfs_refresh_verifier(struct dentry * dentry, unsigned long verf) |
