Lines Matching defs:bsi
10526 struct btrfs_swap_info *bsi)
10538 if (bsi->nr_pages >= sis->max)
10541 max_pages = sis->max - bsi->nr_pages;
10542 first_ppage = PAGE_ALIGN(bsi->block_start) >> PAGE_SHIFT;
10543 next_ppage = PAGE_ALIGN_DOWN(bsi->block_start + bsi->block_len) >> PAGE_SHIFT;
10551 if (bsi->start == 0)
10553 if (bsi->lowest_ppage > first_ppage_reported)
10554 bsi->lowest_ppage = first_ppage_reported;
10555 if (bsi->highest_ppage < (next_ppage - 1))
10556 bsi->highest_ppage = next_ppage - 1;
10558 ret = add_swap_extent(sis, bsi->nr_pages, nr_pages, first_ppage);
10561 bsi->nr_extents += ret;
10562 bsi->nr_pages += nr_pages;
10584 struct btrfs_swap_info bsi = {
10782 if (bsi.block_len &&
10783 bsi.block_start + bsi.block_len == physical_block_start) {
10784 bsi.block_len += len;
10786 if (bsi.block_len) {
10787 ret = btrfs_add_swap_extent(sis, &bsi);
10791 bsi.start = start;
10792 bsi.block_start = physical_block_start;
10793 bsi.block_len = len;
10799 if (bsi.block_len)
10800 ret = btrfs_add_swap_extent(sis, &bsi);
10820 *span = bsi.highest_ppage - bsi.lowest_ppage + 1;
10821 sis->max = bsi.nr_pages;
10822 sis->pages = bsi.nr_pages - 1;
10823 sis->highest_bit = bsi.nr_pages - 1;
10824 return bsi.nr_extents;