kernel-ark/include
OGAWA Hirofumi 05eb0b51fb [PATCH] fat: support a truncate() for expanding size (generic_cont_expand)
This patch changes generic_cont_expand(), in order to share the code
with fatfs.

  - Use vmtruncate() if ->prepare_write() returns a error.

Even if ->prepare_write() returns an error, it may already have added some
blocks.  So, this truncates blocks outside of ->i_size by vmtruncate().

  - Add generic_cont_expand_simple().

The generic_cont_expand_simple() assumes that ->prepare_write() can handle
the block boundary.  With this, we don't need to care the extra byte.

And for expanding a file size by truncate(), fatfs uses the
added generic_cont_expand_simple().

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-08 20:13:47 -08:00
..
acpi [ACPI] increase owner_id limit to 64 from 32 2005-12-21 04:52:16 -05:00
asm-alpha [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-arm [PATCH] IRQ type flags 2006-01-08 20:13:46 -08:00
asm-arm26 [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-cris [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-frv [PATCH] frv: miscellaneous changes 2006-01-08 20:13:38 -08:00
asm-generic [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-h8300 [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-i386 [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
asm-ia64 [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-m32r [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-m68k [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-m68knommu [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-mips [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
asm-parisc [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-powerpc [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
asm-ppc [PATCH] ppc32: Allows compilation of a MPC52xx kernel without PCI 2006-01-06 08:33:31 -08:00
asm-s390 [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-sh [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-sh64 [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-sparc [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-sparc64 [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-um [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-v850 [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
asm-x86_64 [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
asm-xtensa [PATCH] atomic_long_t & include/asm-generic/atomic.h V2 2006-01-06 08:33:29 -08:00
keys [PATCH] Keys: Remove key duplication 2006-01-06 08:33:29 -08:00
linux [PATCH] fat: support a truncate() for expanding size (generic_cont_expand) 2006-01-08 20:13:47 -08:00
math-emu
media Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6 2006-01-06 15:25:08 -08:00
mtd
net [IPV4]: make ip_fragment() static 2006-01-07 13:23:39 -08:00
pcmcia [PATCH] pcmcia: unify attach, EVENT_CARD_INSERTION handlers into one probe callback 2006-01-06 00:03:24 +01:00
rdma
rxrpc
scsi Merge branch 'post-2.6.15' of git://brick.kernel.dk/data/git/linux-2.6-block 2006-01-06 09:01:25 -08:00
sound [ALSA] Revert the nested-device patch 2006-01-04 10:13:48 +01:00
video