Lines Matching refs:BTRFS_NR_SB_LOG_ZONES

45 #define BTRFS_NR_SB_LOG_ZONES 2  macro
89 bool empty[BTRFS_NR_SB_LOG_ZONES]; in sb_write_pointer()
90 bool full[BTRFS_NR_SB_LOG_ZONES]; in sb_write_pointer()
94 for (i = 0; i < BTRFS_NR_SB_LOG_ZONES; i++) { in sb_write_pointer()
124 struct page *page[BTRFS_NR_SB_LOG_ZONES]; in sb_write_pointer()
125 struct btrfs_super_block *super[BTRFS_NR_SB_LOG_ZONES]; in sb_write_pointer()
128 for (i = 0; i < BTRFS_NR_SB_LOG_ZONES; i++) { in sb_write_pointer()
149 for (i = 0; i < BTRFS_NR_SB_LOG_ZONES; i++) in sb_write_pointer()
534 nr_zones = BTRFS_NR_SB_LOG_ZONES; in btrfs_get_dev_zone_info()
538 int sb_pos = BTRFS_NR_SB_LOG_ZONES * i; in btrfs_get_dev_zone_info()
551 if (nr_zones != BTRFS_NR_SB_LOG_ZONES) { in btrfs_get_dev_zone_info()
563 if (zone_info->sb_zones[BTRFS_NR_SB_LOG_ZONES * i].type == in btrfs_get_dev_zone_info()
878 struct blk_zone zones[BTRFS_NR_SB_LOG_ZONES]; in btrfs_sb_log_location_bdev()
905 BTRFS_NR_SB_LOG_ZONES, copy_zone_info_cb, in btrfs_sb_log_location_bdev()
909 if (ret != BTRFS_NR_SB_LOG_ZONES) in btrfs_sb_log_location_bdev()
937 &zinfo->sb_zones[BTRFS_NR_SB_LOG_ZONES * mirror], in btrfs_sb_log_location()
968 zone = &zinfo->sb_zones[BTRFS_NR_SB_LOG_ZONES * mirror]; in btrfs_advance_sb_log()
969 for (i = 0; i < BTRFS_NR_SB_LOG_ZONES; i++) { in btrfs_advance_sb_log()
1030 zone_sectors * BTRFS_NR_SB_LOG_ZONES, GFP_NOFS); in btrfs_reset_sb_log_zones()
1079 sb_zone + BTRFS_NR_SB_LOG_ZONES <= begin)) { in btrfs_find_allocatable_zones()
1082 sb_zone + BTRFS_NR_SB_LOG_ZONES, zinfo); in btrfs_find_allocatable_zones()