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
a35fb914
Commit
a35fb914
authored
Apr 03, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autofs: switch to __vfs_write()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
493c84c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/autofs4/autofs_i.h
fs/autofs4/autofs_i.h
+1
-1
fs/autofs4/waitq.c
fs/autofs4/waitq.c
+1
-1
No files found.
fs/autofs4/autofs_i.h
View file @
a35fb914
...
...
@@ -213,7 +213,7 @@ void autofs4_clean_ino(struct autofs_info *);
static
inline
int
autofs_prepare_pipe
(
struct
file
*
pipe
)
{
if
(
!
pipe
->
f_op
->
write
)
if
(
!
(
pipe
->
f_mode
&
FMODE_CAN_WRITE
)
)
return
-
EINVAL
;
if
(
!
S_ISFIFO
(
file_inode
(
pipe
)
->
i_mode
))
return
-
EINVAL
;
...
...
fs/autofs4/waitq.c
View file @
a35fb914
...
...
@@ -70,7 +70,7 @@ static int autofs4_write(struct autofs_sb_info *sbi,
mutex_lock
(
&
sbi
->
pipe_mutex
);
while
(
bytes
&&
(
wr
=
file
->
f_op
->
write
(
file
,
data
,
bytes
,
&
file
->
f_pos
))
>
0
)
{
(
wr
=
__vfs_
write
(
file
,
data
,
bytes
,
&
file
->
f_pos
))
>
0
)
{
data
+=
wr
;
bytes
-=
wr
;
}
...
...
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