ramfs: enable splice write
PATCH 1/1 ramfs: enable splice write
Hi Andrew,
Any reason for which we don't enable splice write in ramfs? The following patch seems to make splice write work on my system (only tested the MMU path).
Thanks,
tavi
commit da8e2b1f4d096796a5e2f1b11d4a32a78eca0eae
Author: Octavian Purdila <[email protected]> Date: Sat Jun 21 15:14:40 2008 +0300
ramfs: enable splice write
Signed-off-by Octavian Purdila <[email protected]>
fs/ramfs/file-mmu.c +1 -0
@@ -45,6 +45,7 @@ const struct file_operations ramfs_file_operations = { .mmap = generic_file_mmap, .fsync = simple_sync_file, .splice_read = generic_file_splice_read, + .splice_write = generic_file_splice_write, .llseek = generic_file_llseek, };
fs/ramfs/file-nommu.c +1 -0
@@ -43,6 +43,7 @@ const struct file_operations ramfs_file_operations = { .aio_write = generic_file_aio_write, .fsync = simple_sync_file, .splice_read = generic_file_splice_read, + .splice_write = generic_file_splice_write, .llseek = generic_file_llseek, };