f2fs: expose some sectors to user in inline data or dentry case
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 13 Oct 2017 17:27:45 +0000 (10:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:45 +0000 (08:40 +0000)
commitd628ac8abdfc0d3631cb76d6fc1f0b80d988b34f
treee552711dac3f7c25c26b1fe2aaf94da96a4ec715
parentf1117628310079bbdd4a0fa951602419f258bead
f2fs: expose some sectors to user in inline data or dentry case

commit 5b4267d195dd887c4412e34b5a7365baa741b679 upstream.

If there's some data written through inline data or dentry, we need to shouw
st_blocks. This fixes reporting zero blocks even though there is small written
data.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: avoid link file for quotacheck]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/file.c