commit | 50cd2c577668a170750b15f9a88f022f681ce3c7 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu May 23 20:10:34 2013 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sat Jun 29 12:57:08 2013 +0400 |
tree | 62afbdc61a8f8670a19d5d39882e4907b92dc09c | |
parent | 500368f7fbdd888038d3dda579823e9515f63a3b [diff] [blame] |
lift file_*_write out of do_splice_direct() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/read_write.c b/fs/read_write.c index 2cefa41..abca743 100644 --- a/fs/read_write.c +++ b/fs/read_write.c
@@ -1129,7 +1129,9 @@ if (in.file->f_flags & O_NONBLOCK) fl = SPLICE_F_NONBLOCK; #endif + file_start_write(out.file); retval = do_splice_direct(in.file, &pos, out.file, &out_pos, count, fl); + file_end_write(out.file); if (retval > 0) { add_rchar(current, retval);