diff options
author | Hou Tao <[email protected]> | 2019-03-07 16:29:19 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-03-07 18:32:01 -0800 |
commit | 67ceb1eca0acc045c9ef170a05f58fd710063967 (patch) | |
tree | 592bb6975f3121a771c94088056dd14bbf1c6cf5 /tools/perf/scripts/python/syscall-counts.py | |
parent | 660c9fc72e06d7a46d96d2cb8524a26565072a76 (diff) |
fat: enable .splice_write to support splice on O_DIRECT file
Now splice() on O_DIRECT-opened fat file will return -EFAULT, that is
because the default .splice_write, namely default_file_splice_write(),
will construct an ITER_KVEC iov_iter and dio_refill_pages() in dio path
can not handle it.
Fix it by implementing .splice_write through iter_file_splice_write().
Spotted by xfs-tests generic/091.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Hou Tao <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions