[PATCH] xip: reduce code duplication

This patch reworks filemap_xip.c with the goal to reduce code duplication
from mm/filemap.c.  It applies agains 2.6.12-rc6-mm1.  Instead of
implementing the aio functions, this one implements the synchronous
read/write functions only.  For readv and writev, the generic fallback is
used.  For aio, we rely on the application doing the fallback.  Since our
"synchronous" function does memcpy immediately anyway, there is no
performance difference between using the fallbacks or implementing each
operation.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Carsten Otte
2005-06-23 22:05:28 -07:00
committed by Linus Torvalds
parent 6d79125bba
commit eb6fe0c388
4 changed files with 65 additions and 207 deletions

View File

@@ -15,7 +15,7 @@
#include <linux/config.h>
#include <asm/uaccess.h>
extern size_t
size_t
__filemap_copy_from_user_iovec(char *vaddr,
const struct iovec *iov,
size_t base,