f2fs: be aware of extent beyond EOF in fiemap
authorChao Yu <yuchao0@huawei.com>
Tue, 11 Oct 2016 14:57:04 +0000 (22:57 +0800)
committerJaegeuk Kim <jaegeuk@google.com>
Mon, 25 Sep 2017 22:04:54 +0000 (15:04 -0700)
commit9e3d0bf6d3714bc3481e32828bd56eecc0700d29
treed0b4a7da46dbcc57d3e187f74ba2a2e5dac487de
parent332f40b43f2f4a86eec4a2aaf1d3e3295ed673f2
f2fs: be aware of extent beyond EOF in fiemap

commit 58736fa60f6ae659ac72da8b1580c308b47e8edd upstream.

f2fs can support fallocating blocks beyond file size without changing the
size, but ->fiemap of f2fs was restricted and can't detect these extents
fallocated past EOF, now relieve the restriction.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c