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
2dd8c9ad
Commit
2dd8c9ad
authored
Mar 20, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lift sb_start_write out of ->splice_write()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
17338fcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
fs/splice.c
fs/splice.c
+4
-6
No files found.
fs/splice.c
View file @
2dd8c9ad
...
@@ -1000,8 +1000,6 @@ generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out,
...
@@ -1000,8 +1000,6 @@ generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out,
};
};
ssize_t
ret
;
ssize_t
ret
;
sb_start_write
(
inode
->
i_sb
);
pipe_lock
(
pipe
);
pipe_lock
(
pipe
);
splice_from_pipe_begin
(
&
sd
);
splice_from_pipe_begin
(
&
sd
);
...
@@ -1037,7 +1035,6 @@ generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out,
...
@@ -1037,7 +1035,6 @@ generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out,
*
ppos
+=
ret
;
*
ppos
+=
ret
;
balance_dirty_pages_ratelimited
(
mapping
);
balance_dirty_pages_ratelimited
(
mapping
);
}
}
sb_end_write
(
inode
->
i_sb
);
return
ret
;
return
ret
;
}
}
...
@@ -1064,9 +1061,7 @@ static ssize_t default_file_splice_write(struct pipe_inode_info *pipe,
...
@@ -1064,9 +1061,7 @@ static ssize_t default_file_splice_write(struct pipe_inode_info *pipe,
{
{
ssize_t
ret
;
ssize_t
ret
;
file_start_write
(
out
);
ret
=
splice_from_pipe
(
pipe
,
out
,
ppos
,
len
,
flags
,
write_pipe_buf
);
ret
=
splice_from_pipe
(
pipe
,
out
,
ppos
,
len
,
flags
,
write_pipe_buf
);
file_end_write
(
out
);
if
(
ret
>
0
)
if
(
ret
>
0
)
*
ppos
+=
ret
;
*
ppos
+=
ret
;
...
@@ -1119,7 +1114,10 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
...
@@ -1119,7 +1114,10 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
else
else
splice_write
=
default_file_splice_write
;
splice_write
=
default_file_splice_write
;
return
splice_write
(
pipe
,
out
,
ppos
,
len
,
flags
);
file_start_write
(
out
);
ret
=
splice_write
(
pipe
,
out
,
ppos
,
len
,
flags
);
file_end_write
(
out
);
return
ret
;
}
}
/*
/*
...
...
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