aboutsummaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-23 20:10:34 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 04:57:08 -0400
commit50cd2c577668a170750b15f9a88f022f681ce3c7 (patch)
tree62afbdc61a8f8670a19d5d39882e4907b92dc09c /fs/splice.c
parent500368f7fbdd888038d3dda579823e9515f63a3b (diff)
lift file_*_write out of do_splice_direct()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/splice.c')
-rw-r--r--fs/splice.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/splice.c b/fs/splice.c
index fed5134f761c..78b3d12046e7 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -1303,11 +1303,9 @@ long do_splice_direct(struct file *in, loff_t *ppos, struct file *out,
1303 }; 1303 };
1304 long ret; 1304 long ret;
1305 1305
1306 file_start_write(out);
1307 ret = splice_direct_to_actor(in, &sd, direct_splice_actor); 1306 ret = splice_direct_to_actor(in, &sd, direct_splice_actor);
1308 if (ret > 0) 1307 if (ret > 0)
1309 *ppos = sd.pos; 1308 *ppos = sd.pos;
1310 file_end_write(out);
1311 1309
1312 return ret; 1310 return ret;
1313} 1311}