Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6f4e0d5a
Commit
6f4e0d5a
authored
Oct 31, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd_vfs_write(): use file_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a67f797d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
fs/nfsd/vfs.c
fs/nfsd/vfs.c
+1
-3
No files found.
fs/nfsd/vfs.c
View file @
6f4e0d5a
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment