summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-12-14 17:20:57 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2021-01-27 15:20:03 -0800
commit0953fe864c4d05f5a5cde626a630a76918cf4f9c (patch)
tree70f54a54fa150a315f709a41832733e660132176 /fs/f2fs
parent5d4daa579e56adc97fb77c7dfda6c1f747c9ef25 (diff)
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 57b9aab2b142..547c9d4b430b 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1964,6 +1964,7 @@ next:
}
if (size) {
+ flags |= FIEMAP_EXTENT_MERGED;
if (IS_ENCRYPTED(inode))
flags |= FIEMAP_EXTENT_DATA_ENCRYPTED;