]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fat: zero out seek range on _fat_get_block
authorNamjae Jeon <namjae.jeon@samsung.com>
Thu, 26 Jun 2014 00:43:23 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 27 Jun 2014 04:21:53 +0000 (14:21 +1000)
commitbe0eb4245716f21985862dccc35fa2effef046dd
tree6201bce2f507516712e79b22dfc32881ec2f4edb
parent4aaa74b39b22e86a6a03dc906690d66d08a1f2f8
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/inode.c