summaryrefslogtreecommitdiff
path: root/libbcachefs/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/fs.c')
-rw-r--r--libbcachefs/fs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcachefs/fs.c b/libbcachefs/fs.c
index 4591b75f..8621738f 100644
--- a/libbcachefs/fs.c
+++ b/libbcachefs/fs.c
@@ -810,6 +810,9 @@ static int bch2_fill_extent(struct bch_fs *c,
int flags2 = 0;
u64 offset = p.ptr.offset;
+ if (p.ptr.unwritten)
+ flags2 |= FIEMAP_EXTENT_UNWRITTEN;
+
if (p.crc.compression_type)
flags2 |= FIEMAP_EXTENT_ENCODED;
else