Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f4e0d5a authored by Al Viro's avatar Al Viro
Browse files

nfsd_vfs_write(): use file_inode()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a67f797d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -930,7 +930,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
				unsigned long *cnt, int *stablep)
{
	struct svc_export	*exp;
	struct dentry		*dentry;
	struct inode		*inode;
	mm_segment_t		oldfs;
	__be32			err = 0;
@@ -949,8 +948,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
		 */
		current->flags |= PF_LESS_THROTTLE;

	dentry = file->f_path.dentry;
	inode = dentry->d_inode;
	inode = file_inode(file);
	exp   = fhp->fh_export;

	use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp);