Home
last modified time | relevance | path

Searched refs:subvol (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.15/fs/bcachefs/
H A Dsubvolume.c33 struct bkey_s_c_subvolume subvol; in check_subvol() local
43 subvol = bkey_s_c_to_subvolume(k); in check_subvol()
60 subvol.v->fs_path_parent, in check_subvol()
73 if (subvol.v->fs_path_parent) { in check_subvol()
225 bkey_fsck_err_on(!subvol.v->inode, in bch2_subvolume_validate()
331 bch2_subvolume_get(trans, le32_to_cpu(snap.subvol), true, subvol); in bch2_snapshot_get_subvol()
338 struct bkey_s_c_subvolume subvol; in __bch2_subvolume_get_snapshot() local
345 ret = bkey_err(subvol); in __bch2_subvolume_get_snapshot()
420 int ret = bkey_err(subvol); in __bch2_subvolume_delete()
512 u32 subvol; member
[all …]
H A Dnamei.c84 if (new_inode->bi_subvol != snapshot_src.subvol) { in bch2_create_trans()
109 dir.subvol, in bch2_create_trans()
110 snapshot_src.subvol, in bch2_create_trans()
116 new_inode->bi_parent_subvol = dir.subvol; in bch2_create_trans()
118 new_inum.subvol = new_subvol; in bch2_create_trans()
198 if (dir.subvol != inum.subvol) in bch2_link_trans()
369 BTREE_ID_subvolumes, POS(0, subvol), in subvol_update_parent()
408 dst_dir.subvol != src_dir.subvol) { in bch2_rename_trans()
457 if (src_dir.subvol != dst_dir.subvol && in bch2_rename_trans()
602 while (!(inum.subvol == BCACHEFS_ROOT_SUBVOL && in bch2_inum_to_path()
[all …]
H A Dio_misc.c163 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_fpunch_at()
223 prt_printf(out, "subvol=%u", le32_to_cpu(op.v->subvol)); in bch2_logged_op_truncate_to_text()
252 subvol_inum inum = { le32_to_cpu(op->v.subvol), le64_to_cpu(op->v.inum) }; in __bch2_resume_logged_op_truncate()
286 op.v.subvol = cpu_to_le32(inum.subvol); in bch2_truncate()
315 prt_printf(out, "subvol=%u", le32_to_cpu(op.v->subvol)); in bch2_logged_op_finsert_to_text()
363 subvol_inum inum = { le32_to_cpu(op->v.subvol), le64_to_cpu(op->v.inum) }; in __bch2_resume_logged_op_finsert()
383 …ret = lockrestart_do(trans, __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, warn_erro… in __bch2_resume_logged_op_finsert()
423 ret = __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, in __bch2_resume_logged_op_finsert()
520 op.v.subvol = cpu_to_le32(inum.subvol); in bch2_fcollapse_finsert()
H A Ddirent.c136 return le32_to_cpu(d.v->d_parent_subvol) == inum.subvol; in dirent_is_visible()
248 dirent->v.d_parent_subvol = cpu_to_le32(dir.subvol); in dirent_alloc_key()
333 subvol_inum dir_inum = { .subvol = dir_subvol, .inum = dir }; in bch2_dirent_create_snapshot()
380 le32_to_cpu(d.v->d_parent_subvol) != dir.subvol) in bch2_dirent_read_target()
384 target->subvol = dir.subvol; in bch2_dirent_read_target()
387 target->subvol = le32_to_cpu(d.v->d_child_subvol); in bch2_dirent_read_target()
389 ret = bch2_subvolume_get(trans, target->subvol, true, &s); in bch2_dirent_read_target()
532 new_dst->v.d_parent_subvol = cpu_to_le32(dst_dir.subvol); in bch2_dirent_rename()
536 new_src->v.d_parent_subvol = cpu_to_le32(src_dir.subvol); in bch2_dirent_rename()
665 bch2_empty_dir_snapshot(trans, dir.inum, dir.subvol, snapshot); in bch2_empty_dir_trans()
[all …]
H A Dfs.c196 return a.subvol == b.subvol && a.inum == b.inum; in subvol_inum_eq()
522 struct bch_subvolume subvol; in bch2_vfs_inode_get() local
524 bch2_subvolume_get(trans, inum.subvol, true, &subvol) ?: in bch2_vfs_inode_get()
591 inum.subvol = inode_u.bi_subvol ?: dir->ei_inum.subvol; in __bch2_create()
594 ret = bch2_subvolume_get(trans, inum.subvol, true, &subvol) ?: in __bch2_create()
689 ret = bch2_subvolume_get(trans, inum.subvol, true, &subvol) ?: in bch2_lookup_trans()
1197 stat->subvol = inode->ei_inum.subvol; in bch2_getattr()
1845 u32 subvol; member
1870 .subvol = inode->ei_inum.subvol, in bch2_inode_to_fid()
1916 .subvol = fid.subvol, in bch2_nfs_get_inode()
[all …]
H A Dlogged_ops_format.h12 __le32 subvol; member
28 __le32 subvol; member
H A Dsubvolume_types.h17 u32 subvol; /* Nonzero only if a subvolume points to this node: */ member
34 u64 subvol; member
H A Dsnapshot.c309 t->subvol = BCH_SNAPSHOT_SUBVOL(s.v) ? le32_to_cpu(s.v->subvol) : 0; in __bch2_mark_snapshot()
396 u32 subvol = 0, s; in bch2_snapshot_tree_oldest_subvol() local
402 if (s && (!subvol || s < subvol)) in bch2_snapshot_tree_oldest_subvol()
403 subvol = s; in bch2_snapshot_tree_oldest_subvol()
409 return subvol; in bch2_snapshot_tree_oldest_subvol()
462 struct bch_subvolume subvol; in check_snapshot_tree() local
687 struct bch_subvolume subvol; in check_snapshot() local
757 if (fsck_err_on(s.subvol, in check_snapshot()
766 u->v.subvol = 0; in check_snapshot()
1059 s->v.subvol = 0; in bch2_snapshot_node_set_deleted()
[all …]
H A Dio_read.h57 u32 subvol; member
154 rbio->subvol = inum.subvol; in bch2_read()
H A Derror.c675 if (inum.subvol) { in bch2_inum_offset_err_msg_trans()
680 if (!inum.subvol || ret) in bch2_inum_offset_err_msg_trans()
681 prt_printf(out, "inum %llu:%llu", inum.subvol, inum.inum); in bch2_inum_offset_err_msg_trans()
703 .subvol = bch2_snapshot_tree_oldest_subvol(c, pos.snapshot), in bch2_inum_snap_offset_err_msg_trans()
707 if (inum.subvol) { in bch2_inum_snap_offset_err_msg_trans()
713 if (!inum.subvol || ret) in bch2_inum_snap_offset_err_msg_trans()
H A Dsnapshot_format.h10 __le32 subvol; member
H A Dio_read.c348 (subvol_inum) { rbio->subvol, read_pos.inode }, in bch2_read_err_msg_trans()
486 .subvol = rbio->subvol, in bch2_rbio_retry()
507 unsigned subvol = rbio->subvol; in bch2_rbio_retry() local
531 (subvol_inum) { subvol, read_pos.inode }, in bch2_rbio_retry()
1130 rbio->subvol = orig->subvol; in __bch2_read_extent()
1289 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in __bch2_read()
H A Dio_write_types.h63 u32 subvol; member
H A Dstr_hash.h190 int ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_hash_lookup()
208 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_hash_hole()
346 return bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot) ?: in bch2_hash_set()
H A Dfsck.c157 u32 tree_id, u32 *subvol) in find_snapshot_tree_subvol() argument
171 if (s.v->subvol) { in find_snapshot_tree_subvol()
172 *subvol = le32_to_cpu(s.v->subvol); in find_snapshot_tree_subvol()
208 struct bch_subvolume subvol; in lookup_lostfound() local
214 if (!subvol.inode) { in lookup_lostfound()
219 ret = PTR_ERR_OR_ZERO(subvol); in lookup_lostfound()
228 .subvol = subvolid, in lookup_lostfound()
229 .inum = le64_to_cpu(subvol.inode) in lookup_lostfound()
281 path.buf, root_inum.subvol, snapshot); in lookup_lostfound()
609 s->v.subvol = cpu_to_le32(subvolid); in reconstruct_subvol()
[all …]
H A Dfs-io.c264 static inline int range_has_data(struct bch_fs *c, u32 subvol, in range_has_data() argument
270 subvol, 0, k, ({ in range_has_data()
295 ret = range_has_data(c, inode->ei_inum.subvol, in __bch2_truncate_folio()
661 inode->ei_inum.subvol, &snapshot); in __bchfs_fallocate()
869 inode->ei_inum.subvol, 0, k, ({ in quota_reserve_range()
991 inum.subvol, 0, k, ({ in bch2_seek_data()
1027 inum.subvol, BTREE_ITER_slots, k, ({ in bch2_seek_hole()
H A Dio_write.h79 op->subvol = 0; in bch2_write_op_init()
H A Dstr_hash.c14 struct bch_subvolume subvol; in bch2_dirent_has_target() local
16 false, &subvol); in bch2_dirent_has_target()
H A Dfs-io-buffered.c166 rbio->subvol = inum.subvol; in bchfs_read()
182 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bchfs_read()
523 op->subvol = inode->ei_inum.subvol; in bch2_writepage_io_alloc()
H A Dfs-ioctl.c296 snapshot_src.subvol = inode_inum(to_bch_ei(dir)).subvol; in bch2_ioctl_subvolume_create()
H A Dfs-io-direct.c264 err = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_check_range_allocated()
517 dio->op.subvol = inode->ei_inum.subvol; in bch2_dio_write_loop()
H A Dio_write.c374 .subvol = op->subvol, in bch2_write_index_default()
379 BUG_ON(!inum.subvol); in bch2_write_index_default()
389 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, in bch2_write_index_default()
430 if (op->subvol) { in bch2_write_op_error()
432 (subvol_inum) { op->subvol, op->pos.inode, }, in bch2_write_op_error()
1313 ret = bch2_subvolume_get_snapshot(trans, op->subvol, &snapshot); in bch2_nocow_write()
H A Dxattr.c174 ret = bch2_subvol_is_ro_trans(trans, inum.subvol) ?: in bch2_xattr_set()
315 inode->ei_inum.subvol, 0, k, ({ in bch2_xattr_list()
H A Dinode.c344 int ret = __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, warn); in __bch2_inode_peek()
366 bch_err_msg(trans->c, ret, "looking up inum %llu:%llu:", inum.subvol, inum.inum); in __bch2_inode_peek()
1009 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_inode_delete_keys()
1067 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_inode_rm()
/linux-6.15/include/linux/
H A Dstat.h54 u64 subvol; member

12