aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2016-12-31 08:00:21 -0500
committerJ. Bruce Fields <bfields@redhat.com>2017-01-31 12:31:53 -0500
commit865d50b23e4d29c4958e6082c2ed8631472c613f (patch)
tree23fc042cd37d349ab0fad10eb2a829eb77190ea7 /fs/nfsd/vfs.c
parent52e380e049d28732ec280c1e8840c9eddc716adb (diff)
NFSD: Remove unused value inode in nfsd_vfs_write
This is just cleanup, no change in functionality. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 2dd633fdef35..5859f5826045 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -920,7 +920,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
920 unsigned long *cnt, int stable) 920 unsigned long *cnt, int stable)
921{ 921{
922 struct svc_export *exp; 922 struct svc_export *exp;
923 struct inode *inode;
924 mm_segment_t oldfs; 923 mm_segment_t oldfs;
925 __be32 err = 0; 924 __be32 err = 0;
926 int host_err; 925 int host_err;
@@ -938,9 +937,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
938 */ 937 */
939 current->flags |= PF_LESS_THROTTLE; 938 current->flags |= PF_LESS_THROTTLE;
940 939
941 inode = file_inode(file); 940 exp = fhp->fh_export;
942 exp = fhp->fh_export;
943
944 use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); 941 use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp);
945 942
946 if (!EX_ISSYNC(exp)) 943 if (!EX_ISSYNC(exp))