aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorJosef "Jeff" Sipek <jsipek@cs.sunysb.edu>2006-12-08 05:36:41 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:42 -0500
commit7eaa36e2d470ed63bf0c4e4dd8b09cc4a9e1c481 (patch)
treef0242501eea54821150f6996807a80e9231bae89 /fs/nfsd/nfs4state.c
parent01cce933d8b524d9312f5098c70fa1b6ac190572 (diff)
[PATCH] nfsd: change uses of f_{dentry, vfsmnt} to use f_path
Change all the uses of f_{dentry,vfsmnt} to f_path.{dentry,mnt} in the nfs server code. Signed-off-by: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 640c92b2a9f7..b7179bd45a1e 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1310,7 +1310,7 @@ static inline void
1310nfs4_file_downgrade(struct file *filp, unsigned int share_access) 1310nfs4_file_downgrade(struct file *filp, unsigned int share_access)
1311{ 1311{
1312 if (share_access & NFS4_SHARE_ACCESS_WRITE) { 1312 if (share_access & NFS4_SHARE_ACCESS_WRITE) {
1313 put_write_access(filp->f_dentry->d_inode); 1313 put_write_access(filp->f_path.dentry->d_inode);
1314 filp->f_mode = (filp->f_mode | FMODE_READ) & ~FMODE_WRITE; 1314 filp->f_mode = (filp->f_mode | FMODE_READ) & ~FMODE_WRITE;
1315 } 1315 }
1316} 1316}
@@ -1623,7 +1623,7 @@ static __be32
1623nfs4_upgrade_open(struct svc_rqst *rqstp, struct svc_fh *cur_fh, struct nfs4_stateid *stp, struct nfsd4_open *open) 1623nfs4_upgrade_open(struct svc_rqst *rqstp, struct svc_fh *cur_fh, struct nfs4_stateid *stp, struct nfsd4_open *open)
1624{ 1624{
1625 struct file *filp = stp->st_vfs_file; 1625 struct file *filp = stp->st_vfs_file;
1626 struct inode *inode = filp->f_dentry->d_inode; 1626 struct inode *inode = filp->f_path.dentry->d_inode;
1627 unsigned int share_access, new_writer; 1627 unsigned int share_access, new_writer;
1628 __be32 status; 1628 __be32 status;
1629 1629
@@ -1965,7 +1965,7 @@ search_close_lru(u32 st_id, int flags)
1965static inline int 1965static inline int
1966nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stateid *stp) 1966nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stateid *stp)
1967{ 1967{
1968 return fhp->fh_dentry->d_inode != stp->st_vfs_file->f_dentry->d_inode; 1968 return fhp->fh_dentry->d_inode != stp->st_vfs_file->f_path.dentry->d_inode;
1969} 1969}
1970 1970
1971static int 1971static int
@@ -2862,7 +2862,7 @@ nfsd4_lockt(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_lock
2862 * only the dentry:inode set. 2862 * only the dentry:inode set.
2863 */ 2863 */
2864 memset(&file, 0, sizeof (struct file)); 2864 memset(&file, 0, sizeof (struct file));
2865 file.f_dentry = current_fh->fh_dentry; 2865 file.f_path.dentry = current_fh->fh_dentry;
2866 2866
2867 status = nfs_ok; 2867 status = nfs_ok;
2868 if (posix_test_lock(&file, &file_lock, &conflock)) { 2868 if (posix_test_lock(&file, &file_lock, &conflock)) {
@@ -2952,7 +2952,7 @@ static int
2952check_for_locks(struct file *filp, struct nfs4_stateowner *lowner) 2952check_for_locks(struct file *filp, struct nfs4_stateowner *lowner)
2953{ 2953{
2954 struct file_lock **flpp; 2954 struct file_lock **flpp;
2955 struct inode *inode = filp->f_dentry->d_inode; 2955 struct inode *inode = filp->f_path.dentry->d_inode;
2956 int status = 0; 2956 int status = 0;
2957 2957
2958 lock_kernel(); 2958 lock_kernel();