diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-04-05 04:27:08 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-06-12 00:18:51 -0400 |
commit | 8d0207652cbe27d1f962050737848e5ad4671958 (patch) | |
tree | 2cd92ec3cfc66cdfd3cff1b4a46f1b5a4f4b8197 /fs/gfs2 | |
parent | 62a8067a7f35dba2de501c9cb00e4cf36da90bc0 (diff) |
->splice_write() via ->write_iter()
iter_file_splice_write() - a ->splice_write() instance that gathers the
pipe buffers, builds a bio_vec-based iov_iter covering those and feeds
it to ->write_iter(). A bunch of simple cases coverted to that...
[AV: fixed the braino spotted by Cyrill]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index ca932cd358d3..01b4c5b1bff8 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -1068,7 +1068,7 @@ const struct file_operations gfs2_file_fops = { | |||
1068 | .lock = gfs2_lock, | 1068 | .lock = gfs2_lock, |
1069 | .flock = gfs2_flock, | 1069 | .flock = gfs2_flock, |
1070 | .splice_read = generic_file_splice_read, | 1070 | .splice_read = generic_file_splice_read, |
1071 | .splice_write = generic_file_splice_write, | 1071 | .splice_write = iter_file_splice_write, |
1072 | .setlease = gfs2_setlease, | 1072 | .setlease = gfs2_setlease, |
1073 | .fallocate = gfs2_fallocate, | 1073 | .fallocate = gfs2_fallocate, |
1074 | }; | 1074 | }; |
@@ -1098,7 +1098,7 @@ const struct file_operations gfs2_file_fops_nolock = { | |||
1098 | .release = gfs2_release, | 1098 | .release = gfs2_release, |
1099 | .fsync = gfs2_fsync, | 1099 | .fsync = gfs2_fsync, |
1100 | .splice_read = generic_file_splice_read, | 1100 | .splice_read = generic_file_splice_read, |
1101 | .splice_write = generic_file_splice_write, | 1101 | .splice_write = iter_file_splice_write, |
1102 | .setlease = generic_setlease, | 1102 | .setlease = generic_setlease, |
1103 | .fallocate = gfs2_fallocate, | 1103 | .fallocate = gfs2_fallocate, |
1104 | }; | 1104 | }; |