Files
android_kernel_xiaomi_sm8450/include/linux
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
..
2006-01-06 14:58:39 -05:00
2006-01-04 12:40:39 +00:00
2005-11-13 18:14:17 -08:00
2005-04-16 15:20:36 -07:00
2006-01-03 13:11:06 -08:00
2005-11-13 18:14:10 -08:00
2006-01-06 14:58:54 -05:00
2005-11-10 02:26:41 +01:00
2005-11-22 19:39:30 -08:00
2006-01-05 22:16:26 -08:00
2006-01-06 08:33:54 -08:00
2006-01-06 13:24:54 -08:00
2006-01-06 13:24:29 -08:00
2006-01-06 08:33:53 -08:00
2006-01-06 08:33:59 -08:00
2006-01-06 08:33:29 -08:00
2005-12-12 08:57:43 -08:00
2006-01-08 20:12:43 -08:00
2006-01-08 20:13:46 -08:00
2005-11-09 07:56:00 -08:00
2006-01-06 08:33:20 -08:00
2006-01-03 13:11:15 -08:00
2006-01-06 08:33:29 -08:00
2005-11-13 18:14:12 -08:00
2006-01-06 08:33:56 -08:00
2005-04-16 15:20:36 -07:00
2006-01-08 20:13:45 -08:00
2006-01-06 08:33:27 -08:00
2006-01-08 20:13:40 -08:00
2005-04-16 15:20:36 -07:00
2006-01-08 20:13:46 -08:00
2006-01-08 20:13:45 -08:00
2005-12-12 08:57:42 -08:00
2006-01-08 20:12:40 -08:00