linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: calibrate extent_end when found a gap
@ 2018-09-04 12:42 Lu Fengqi
  2018-09-11 14:41 ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Lu Fengqi @ 2018-09-04 12:42 UTC (permalink / raw)
  To: linux-btrfs

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.fnst@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-13 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04 12:42 [PATCH] btrfs-progs: calibrate extent_end when found a gap Lu Fengqi
2018-09-11 14:41 ` David Sterba
2018-09-13  8:30   ` Lu Fengqi
2018-09-13  8:32     ` Lu Fengqi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).