projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a67f797
)
nfsd_vfs_write(): use file_inode()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 31 Oct 2014 06:42:53 +0000
(
02:42
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 19 Nov 2014 18:01:26 +0000
(13:01 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfsd/vfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/vfs.c
b/fs/nfsd/vfs.c
index 161d2d51b6f2d83125e403fe23fac92a4336063b..0a82e3c033ee94ce20352319ae8b4794376a3fdb 100644
(file)
--- 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,
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);