linux/fs/fat
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
..
cache.c [PATCH] fat: support ->direct_IO() 2006-01-08 20:13:46 -08:00
dir.c [PATCH] fat: support ->direct_IO() 2006-01-08 20:13:46 -08:00
fatent.c [PATCH] fat: s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL/ 2006-01-08 20:13:46 -08:00
file.c [PATCH] fat: support a truncate() for expanding size (generic_cont_expand) 2006-01-08 20:13:47 -08:00
inode.c [PATCH] fat: support ->direct_IO() 2006-01-08 20:13:46 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
misc.c [PATCH] fat: s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL/ 2006-01-08 20:13:46 -08:00