* [patch] reiser4: specify splice file operations
[not found] <200710212347.l9LNlD6K000649@imap1.linux-foundation.org>
@ 2007-12-04 16:44 ` Edward Shishkin
0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2007-12-04 16:44 UTC (permalink / raw)
To: akpm; +Cc: jens.axboe, ReiserFS Mailing List
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
akpm@linux-foundation.org wrote:
>The patch titled
> git-block-vs-reiser4
>has been removed from the -mm tree. Its filename was
> git-block-vs-reiser4.patch
>
>This patch was dropped because it was folded into reiser4.patch
>
>------------------------------------------------------
>Subject: git-block-vs-reiser4
>From: Andrew Morton
>
>Hope this is right.
>
>Hope you know what you're doing ;)
>
This is a fixup for broken loopback functionality.
Thanks,
Edward.
[-- Attachment #2: reiser4-specify-splice_ops.patch --]
[-- Type: text/x-patch, Size: 1295 bytes --]
Specify splice_read, splice_write file operations for
loopback functionality.
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
linux-2.6.24-rc3-mm2/fs/reiser4/plugin/file/cryptcompress.c | 3 ++-
linux-2.6.24-rc3-mm2/fs/reiser4/plugin/object.c | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
--- linux-2.6.24-rc3-mm2/fs/reiser4/plugin/file/cryptcompress.c.orig
+++ linux-2.6.24-rc3-mm2/fs/reiser4/plugin/file/cryptcompress.c
@@ -3747,13 +3747,14 @@
int prepare_write_cryptcompress(struct file *file, struct page *page,
unsigned from, unsigned to)
{
- return 0;
+ return -EINVAL;
}
/* plugin->commit_write */
int commit_write_cryptcompress(struct file *file, struct page *page,
unsigned from, unsigned to)
{
+ BUG();
return 0;
}
--- linux-2.6.24-rc3-mm2/fs/reiser4/plugin/object.c.orig
+++ linux-2.6.24-rc3-mm2/fs/reiser4/plugin/object.c
@@ -103,7 +103,9 @@
.mmap = reiser4_mmap_careful,
.open = reiser4_open_careful,
.release = reiser4_release_careful,
- .fsync = reiser4_sync_file_common
+ .fsync = reiser4_sync_file_common,
+ .splice_read = generic_file_splice_read,
+ .splice_write = generic_file_splice_write
};
static struct address_space_operations regular_file_a_ops = {
.writepage = reiser4_writepage,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-04 16:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200710212347.l9LNlD6K000649@imap1.linux-foundation.org>
2007-12-04 16:44 ` [patch] reiser4: specify splice file operations Edward Shishkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).