diff options
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 10 |
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 | |||
1310 | nfs4_file_downgrade(struct file *filp, unsigned int share_access) | 1310 | nfs4_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 | |||
1623 | nfs4_upgrade_open(struct svc_rqst *rqstp, struct svc_fh *cur_fh, struct nfs4_stateid *stp, struct nfsd4_open *open) | 1623 | nfs4_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) | |||
1965 | static inline int | 1965 | static inline int |
1966 | nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stateid *stp) | 1966 | nfs4_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 | ||
1971 | static int | 1971 | static 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 | |||
2952 | check_for_locks(struct file *filp, struct nfs4_stateowner *lowner) | 2952 | check_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(); |