The extent_end will be used to check whether there is gap between this
extent and next extent. If it is not calibrated, check_file_extent will
mistake that there are gaps between the remaining extents.

Signed-off-by: Lu Fengqi <lufq.f...@cn.fujitsu.com>
---
 check/mode-lowmem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/check/mode-lowmem.c b/check/mode-lowmem.c
index 1bce44f5658a..0f14a4968e84 100644
--- a/check/mode-lowmem.c
+++ b/check/mode-lowmem.c
@@ -1972,6 +1972,7 @@ static int check_file_extent(struct btrfs_root *root, 
struct btrfs_path *path,
                                root->objectid, fkey.objectid, fkey.offset,
                                fkey.objectid, *end);
                }
+               *end = fkey.offset;
        }
 
        *end += extent_num_bytes;
-- 
2.18.0



Reply via email to