summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorOGAWA Hirofumi2006-01-08 10:02:13 +0100
committerLinus Torvalds2006-01-09 05:13:47 +0100
commit05eb0b51fb46430050d5873458612f53e0234f2e (patch)
tree88b9398079f53f29dff7533fb27487ae725983b1 /mm/filemap.c
parent[PATCH] export/change sync_page_range/_nolock() (diff)
downloadkernel-qcow2-linux-05eb0b51fb46430050d5873458612f53e0234f2e.tar.gz
kernel-qcow2-linux-05eb0b51fb46430050d5873458612f53e0234f2e.tar.xz
kernel-qcow2-linux-05eb0b51fb46430050d5873458612f53e0234f2e.zip
[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>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions