[PATCH v3 12/13] f2fs: fiemap: emit new COMPRESSED state

From: Sweet Tea Dorminy
Date: Wed Apr 03 2024 - 03:37:38 EST


Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@xxxxxxxxxx>
---
fs/f2fs/data.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 2a3625c10125..e999cb1bb02f 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -2014,6 +2014,7 @@ int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,

if (compr_cluster) {
flags = FIEMAP_EXTENT_ENCODED |
+ flags = FIEMAP_EXTENT_DATA_COMPRESSED |
FIEMAP_EXTENT_HAS_PHYS_LEN;
count_in_cluster += map.m_len;
if (count_in_cluster == cluster_size) {
--
2.43.0