]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fat: zero out seek range on _fat_get_block
authorNamjae Jeon <namjae.jeon@samsung.com>
Fri, 3 Jan 2014 03:10:25 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:25 +0000 (14:10 +1100)
commite8659a1973313543e4549289f8829115a69ecb04
tree425ba50ee7286e115b6641c753ed047c23f0f147
parenta68e44e0a0fe397b23f53bfaf39f2376b7bfe27c
fat: zero out seek range on _fat_get_block

For normal buffered write operations, normally if we try to write to an
offset > than file size, it does a cont_expand_zero till that offset.
Now, in case of fallocated regions, since the blocks are already
allocated.  So, make it zero out that buffers for those blocks till the
seek'ed offset.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fat/cache.c
fs/fat/inode.c