[PATCH 2/2] btrfs-progs: check: call btrfs_lookup_block_group() instead in check_extent_type()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Su Yue <Damenly_Su@xxxxxxx>

check_extent_type() wants to lookup the block group which contains the
extent, not the other contains or after the extent start.

Use btrfs_lookup_block_group() instead of
btrfs_lookup_first_btrfs_group().

Signed-off-by: Su Yue <Damenly_Su@xxxxxxx>
---
 check/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check/main.c b/check/main.c
index a0e5ac47c152..d18d8e9fa80b 100644
--- a/check/main.c
+++ b/check/main.c
@@ -4530,7 +4530,7 @@ static void check_extent_type(struct extent_record *rec)
 {
 	struct btrfs_block_group_cache *bg_cache;
 
-	bg_cache = btrfs_lookup_first_block_group(global_info, rec->start);
+	bg_cache = btrfs_lookup_block_group(global_info, rec->start);
 	if (!bg_cache)
 		return;
 
-- 
2.23.0




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux