]> 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>
Thu, 22 May 2014 00:54:41 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 10 Jun 2014 06:02:13 +0000 (16:02 +1000)
commitb52dade1c438c14752335dbe36c19e7d174790f3
tree4baf17be89b7754f48571b896ee6ff5ab7c73db1
parent07e15243854d93d8c0ed4c9f64f66baaa39e3df0
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