提交 6f4e0d5a 编写于 作者: A Al Viro

nfsd_vfs_write(): use file_inode()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 a67f797d
...@@ -930,7 +930,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, ...@@ -930,7 +930,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
unsigned long *cnt, int *stablep) unsigned long *cnt, int *stablep)
{ {
struct svc_export *exp; struct svc_export *exp;
struct dentry *dentry;
struct inode *inode; struct inode *inode;
mm_segment_t oldfs; mm_segment_t oldfs;
__be32 err = 0; __be32 err = 0;
...@@ -949,8 +948,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, ...@@ -949,8 +948,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
*/ */
current->flags |= PF_LESS_THROTTLE; current->flags |= PF_LESS_THROTTLE;
dentry = file->f_path.dentry; inode = file_inode(file);
inode = dentry->d_inode;
exp = fhp->fh_export; exp = fhp->fh_export;
use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册