diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-31 02:42:53 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 13:01:26 -0500 |
| commit | 6f4e0d5aaa9efaa701f4c3c0bb9b22d7943157c9 (patch) | |
| tree | 5fff81b117f80158467c9d2b7c03aa45c033648f | |
| parent | a67f797db61ee8f2d732e411bf35a92fd78b44a2 (diff) | |
nfsd_vfs_write(): use file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/nfsd/vfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 161d2d51b6f2..0a82e3c033ee 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
| @@ -930,7 +930,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, | |||
| 930 | unsigned long *cnt, int *stablep) | 930 | unsigned long *cnt, int *stablep) |
| 931 | { | 931 | { |
| 932 | struct svc_export *exp; | 932 | struct svc_export *exp; |
| 933 | struct dentry *dentry; | ||
| 934 | struct inode *inode; | 933 | struct inode *inode; |
| 935 | mm_segment_t oldfs; | 934 | mm_segment_t oldfs; |
| 936 | __be32 err = 0; | 935 | __be32 err = 0; |
| @@ -949,8 +948,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, | |||
| 949 | */ | 948 | */ |
| 950 | current->flags |= PF_LESS_THROTTLE; | 949 | current->flags |= PF_LESS_THROTTLE; |
| 951 | 950 | ||
| 952 | dentry = file->f_path.dentry; | 951 | inode = file_inode(file); |
| 953 | inode = dentry->d_inode; | ||
| 954 | exp = fhp->fh_export; | 952 | exp = fhp->fh_export; |
| 955 | 953 | ||
| 956 | use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); | 954 | use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); |
