Lines Matching +full:9 +full:k
146 static unsigned bkey_to_sector_state(struct bkey_s_c k) in bkey_to_sector_state() argument
148 if (bkey_extent_is_reservation(k)) in bkey_to_sector_state()
150 if (bkey_extent_is_allocation(k.k)) in bkey_to_sector_state()
205 inum.subvol, BTREE_ITER_slots, k, ({ in bch2_folio_set()
206 unsigned nr_ptrs = bch2_bkey_nr_ptrs_fully_allocated(k); in bch2_folio_set()
207 unsigned state = bkey_to_sector_state(k); in bch2_folio_set()
213 unsigned folio_offset = max(bkey_start_offset(k.k), folio_start) - in bch2_folio_set()
215 unsigned folio_len = min(k.k->p.offset, folio_end) - in bch2_folio_set()
218 BUG_ON(k.k->p.offset < folio_start); in bch2_folio_set()
219 BUG_ON(bkey_start_offset(k.k) > folio_end); in bch2_folio_set()
224 if (k.k->p.offset < folio_end) in bch2_folio_set()
235 void bch2_bio_page_state_set(struct bio *bio, struct bkey_s_c k) in bch2_bio_page_state_set() argument
239 unsigned nr_ptrs = k.k->type == KEY_TYPE_reflink_v in bch2_bio_page_state_set()
240 ? 0 : bch2_bkey_nr_ptrs_fully_allocated(k); in bch2_bio_page_state_set()
241 unsigned state = bkey_to_sector_state(k); in bch2_bio_page_state_set()
245 fv.fv_offset >> 9, in bch2_bio_page_state_set()
246 fv.fv_len >> 9, in bch2_bio_page_state_set()
420 for (i = round_down(offset, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
421 i < round_up(offset + len, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
436 for (i = round_down(offset, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
437 i < round_up(offset + len, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
445 unsigned reserved_offset = round_down(i << 9, block_bytes(c)); in __bch2_folio_reservation_get()
534 for (i = round_down(offset, block_bytes(c)) >> 9; in bch2_set_folio_dirty()
535 i < round_up(offset + len, block_bytes(c)) >> 9; in bch2_set_folio_dirty()
805 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole()
815 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole()