Lines Matching refs:inum
24 subvol_inum inum, in bch2_extent_fallocate() argument
111 ret = bch2_extent_update(trans, inum, iter, new.k, &disk_res, in bch2_extent_fallocate()
118 bch2_inum_offset_err_msg_trans(trans, &buf, inum, iter->pos.offset << 9); in bch2_extent_fallocate()
141 subvol_inum inum, u64 end, in bch2_fpunch_at() argument
146 struct bpos end_pos = POS(inum.inum, end); in bch2_fpunch_at()
162 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_fpunch_at()
186 ret = bch2_extent_update(trans, inum, iter, &delete, in bch2_fpunch_at()
194 int bch2_fpunch(struct bch_fs *c, subvol_inum inum, u64 start, u64 end, in bch2_fpunch() argument
202 POS(inum.inum, start), in bch2_fpunch()
205 ret = bch2_fpunch_at(trans, &iter, inum, end, i_sectors_delta); in bch2_fpunch()
223 prt_printf(out, " inum=%llu", le64_to_cpu(op.v->inum)); in bch2_logged_op_truncate_to_text()
228 subvol_inum inum, in truncate_set_isize() argument
236 ret = __bch2_inode_peek(trans, &iter, &inode_u, inum, BTREE_ITER_intent, warn) ?: in truncate_set_isize()
251 subvol_inum inum = { le32_to_cpu(op->v.subvol), le64_to_cpu(op->v.inum) }; in __bch2_resume_logged_op_truncate() local
257 truncate_set_isize(trans, inum, new_i_size, i_sectors_delta != NULL)); in __bch2_resume_logged_op_truncate()
262 POS(inum.inum, round_up(new_i_size, block_bytes(c)) >> 9), in __bch2_resume_logged_op_truncate()
264 ret = bch2_fpunch_at(trans, &fpunch_iter, inum, U64_MAX, i_sectors_delta); in __bch2_resume_logged_op_truncate()
280 int bch2_truncate(struct bch_fs *c, subvol_inum inum, u64 new_i_size, u64 *i_sectors_delta) in bch2_truncate() argument
285 op.v.subvol = cpu_to_le32(inum.subvol); in bch2_truncate()
286 op.v.inum = cpu_to_le64(inum.inum); in bch2_truncate()
315 prt_printf(out, " inum=%llu", le64_to_cpu(op.v->inum)); in bch2_logged_op_finsert_to_text()
320 static int adjust_i_size(struct btree_trans *trans, subvol_inum inum, in adjust_i_size() argument
330 ret = __bch2_inode_peek(trans, &iter, &inode_u, inum, BTREE_ITER_intent, warn); in adjust_i_size()
362 subvol_inum inum = { le32_to_cpu(op->v.subvol), le64_to_cpu(op->v.inum) }; in __bch2_resume_logged_op_finsert() local
374 ret = bch2_inum_opts_get(trans, inum, &opts); in __bch2_resume_logged_op_finsert()
382 …ret = lockrestart_do(trans, __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, warn_erro… in __bch2_resume_logged_op_finsert()
387 POS(inum.inum, 0), in __bch2_resume_logged_op_finsert()
396 adjust_i_size(trans, inum, src_offset, len, warn_errors) ?: in __bch2_resume_logged_op_finsert()
401 bch2_btree_iter_set_pos(&iter, POS(inum.inum, src_offset)); in __bch2_resume_logged_op_finsert()
403 ret = bch2_fpunch_at(trans, &iter, inum, src_offset + len, i_sectors_delta); in __bch2_resume_logged_op_finsert()
418 struct bpos src_pos = POS(inum.inum, src_offset); in __bch2_resume_logged_op_finsert()
422 ret = __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, in __bch2_resume_logged_op_finsert()
428 bch2_btree_iter_set_pos(&iter, SPOS(inum.inum, pos, snapshot)); in __bch2_resume_logged_op_finsert()
431 ? bch2_btree_iter_peek_prev_min(&iter, POS(inum.inum, 0)) in __bch2_resume_logged_op_finsert()
432 : bch2_btree_iter_peek_max(&iter, POS(inum.inum, U64_MAX)); in __bch2_resume_logged_op_finsert()
437 k.k->p.inode != inum.inum || in __bch2_resume_logged_op_finsert()
438 bkey_le(k.k->p, POS(inum.inum, src_offset))) in __bch2_resume_logged_op_finsert()
486 adjust_i_size(trans, inum, src_offset, shift, warn_errors) ?: in __bch2_resume_logged_op_finsert()
491 adjust_i_size(trans, inum, 0, 0, warn_errors) ?: in __bch2_resume_logged_op_finsert()
511 int bch2_fcollapse_finsert(struct bch_fs *c, subvol_inum inum, in bch2_fcollapse_finsert() argument
519 op.v.subvol = cpu_to_le32(inum.subvol); in bch2_fcollapse_finsert()
520 op.v.inum = cpu_to_le64(inum.inum); in bch2_fcollapse_finsert()