Lines Matching +full:9 +full:k
226 subvol, 0, k, ({ in range_has_data()
227 bkey_extent_is_data(k.k) && !bkey_extent_is_unwritten(k); in range_has_data()
294 for (i = round_up(start_offset, block_bytes(c)) >> 9; in __bch2_truncate_folio()
295 i < round_down(end_offset, block_bytes(c)) >> 9; in __bch2_truncate_folio()
520 block_start >> 9, block_end >> 9, in bchfs_fpunch()
565 ret = bch2_fcollapse_finsert(c, inode_inum(inode), offset >> 9, len >> 9, in bchfs_fcollapse_finsert()
593 struct bkey_s_c k; in __bchfs_fallocate() local
611 k = bch2_btree_iter_peek_slot(&iter); in __bchfs_fallocate()
612 if ((ret = bkey_err(k))) in __bchfs_fallocate()
616 hole_end = bpos_min(k.k->p, end_pos).offset; in __bchfs_fallocate()
617 is_allocation = bkey_extent_is_allocation(k.k); in __bchfs_fallocate()
620 if (bkey_extent_is_reservation(k) && in __bchfs_fallocate()
621 bch2_bkey_nr_ptrs_fully_allocated(k) >= opts.data_replicas) { in __bchfs_fallocate()
626 if (bkey_extent_is_data(k.k) && in __bchfs_fallocate()
733 ret = __bchfs_fallocate(inode, mode, block_start >> 9, block_end >> 9); in bchfs_fallocate()
813 inode->ei_inum.subvol, 0, k, ({ in quota_reserve_range()
814 if (bkey_extent_is_allocation(k.k)) { in quota_reserve_range()
815 u64 s = min(end, k.k->p.offset) - in quota_reserve_range()
816 max(start, bkey_start_offset(k.k)); in quota_reserve_range()
869 ret = quota_reserve_range(dst, "a_res, pos_dst >> 9, in bch2_remap_file_range()
870 (pos_dst + aligned_len) >> 9); in bch2_remap_file_range()
877 bch2_mark_pagecache_unallocated(src, pos_src >> 9, in bch2_remap_file_range()
878 (pos_src + aligned_len) >> 9); in bch2_remap_file_range()
881 inode_inum(dst), pos_dst >> 9, in bch2_remap_file_range()
882 inode_inum(src), pos_src >> 9, in bch2_remap_file_range()
883 aligned_len >> 9, in bch2_remap_file_range()
891 ret = min((u64) ret << 9, (u64) len); in bch2_remap_file_range()
926 POS(inode->v.i_ino, offset >> 9), in bch2_seek_data()
928 inum.subvol, 0, k, ({ in bch2_seek_data()
929 if (bkey_extent_is_data(k.k)) { in bch2_seek_data()
930 next_data = max(offset, bkey_start_offset(k.k) << 9); in bch2_seek_data()
932 } else if (k.k->p.offset >> 9 > isize) in bch2_seek_data()
962 POS(inode->v.i_ino, offset >> 9), in bch2_seek_hole()
964 inum.subvol, BTREE_ITER_slots, k, ({ in bch2_seek_hole()
965 if (k.k->p.inode != inode->v.i_ino) { in bch2_seek_hole()
969 } else if (!bkey_extent_is_data(k.k)) { in bch2_seek_hole()
971 max(offset, bkey_start_offset(k.k) << 9), in bch2_seek_hole()
972 k.k->p.offset << 9, 0, false); in bch2_seek_hole()
974 if (next_hole < k.k->p.offset << 9) in bch2_seek_hole()
977 offset = max(offset, bkey_start_offset(k.k) << 9); in bch2_seek_hole()