]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/filemap_xip.c
[PATCH] xip: reduce code duplication
authorCarsten Otte <cotte@de.ibm.com>
Fri, 24 Jun 2005 05:05:28 +0000 (22:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:06:41 +0000 (00:06 -0700)
commiteb6fe0c388e43b02e261f0fdee60e42f6298d7f7
tree3924bfbbbb10afc19f3bcd4963af14121f2c0553
parent6d79125bba55ee82701f1c7d4ebbc1aa20ecbe4e
[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>
fs/ext2/file.c
include/linux/fs.h
mm/filemap.h
mm/filemap_xip.c