f2fs: fix to tag FIEMAP_EXTENT_MERGED in f2fs_fiemap()

f2fs does not natively support extents in metadata, 'extent' in f2fs
is used as a virtual concept, so in f2fs_fiemap() interface, it needs
to tag FIEMAP_EXTENT_MERGED flag to indicated the extent status is a
result of merging.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu 2020-12-14 17:20:57 +08:00 committed by Jaegeuk Kim
parent 5d4daa579e
commit 0953fe864c
1 changed files with 1 additions and 0 deletions

View File

@ -1964,6 +1964,7 @@ next:
}
if (size) {
flags |= FIEMAP_EXTENT_MERGED;
if (IS_ENCRYPTED(inode))
flags |= FIEMAP_EXTENT_DATA_ENCRYPTED;