Lines Matching defs:bsi
10109 struct btrfs_swap_info *bsi)
10121 if (bsi->nr_pages >= sis->max)
10124 max_pages = sis->max - bsi->nr_pages;
10125 first_ppage = ALIGN(bsi->block_start, PAGE_SIZE) >> PAGE_SHIFT;
10126 next_ppage = ALIGN_DOWN(bsi->block_start + bsi->block_len,
10135 if (bsi->start == 0)
10137 if (bsi->lowest_ppage > first_ppage_reported)
10138 bsi->lowest_ppage = first_ppage_reported;
10139 if (bsi->highest_ppage < (next_ppage - 1))
10140 bsi->highest_ppage = next_ppage - 1;
10142 ret = add_swap_extent(sis, bsi->nr_pages, nr_pages, first_ppage);
10145 bsi->nr_extents += ret;
10146 bsi->nr_pages += nr_pages;
10168 struct btrfs_swap_info bsi = {
10366 if (bsi.block_len &&
10367 bsi.block_start + bsi.block_len == physical_block_start) {
10368 bsi.block_len += len;
10370 if (bsi.block_len) {
10371 ret = btrfs_add_swap_extent(sis, &bsi);
10375 bsi.start = start;
10376 bsi.block_start = physical_block_start;
10377 bsi.block_len = len;
10383 if (bsi.block_len)
10384 ret = btrfs_add_swap_extent(sis, &bsi);
10404 *span = bsi.highest_ppage - bsi.lowest_ppage + 1;
10405 sis->max = bsi.nr_pages;
10406 sis->pages = bsi.nr_pages - 1;
10407 sis->highest_bit = bsi.nr_pages - 1;
10408 return bsi.nr_extents;