From: Chao Yu Date: Mon, 14 Dec 2020 09:20:57 +0000 (+0800) Subject: f2fs: fix to tag FIEMAP_EXTENT_MERGED in f2fs_fiemap() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0953fe864c4d05f5a5cde626a630a76918cf4f9c;p=linux.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 57b9aab2b1426..547c9d4b430b8 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;