| /linux/fs/bcachefs/ |
| A D | subvolume.c | 32 struct bkey_s_c_subvolume subvol; in check_subvol() local 42 subvol = bkey_s_c_to_subvolume(k); in check_subvol() 59 subvol.v->fs_path_parent, in check_subvol() 72 if (subvol.v->fs_path_parent) { in check_subvol() 224 bkey_fsck_err_on(!subvol.v->inode, in bch2_subvolume_validate() 331 bch2_subvolume_get(trans, le32_to_cpu(snap.subvol), true, 0, 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() 423 ret = bkey_err(subvol); in __bch2_subvolume_delete() 478 u32 subvol; member [all …]
|
| A D | fs-common.c | 86 if (new_inode->bi_subvol != snapshot_src.subvol) { in bch2_create_trans() 111 dir.subvol, in bch2_create_trans() 112 snapshot_src.subvol, in bch2_create_trans() 118 new_inode->bi_parent_subvol = dir.subvol; in bch2_create_trans() 120 new_inum.subvol = new_subvol; in bch2_create_trans() 199 if (dir.subvol != inum.subvol) in bch2_link_trans() 366 BTREE_ID_subvolumes, POS(0, subvol), in subvol_update_parent() 405 dst_dir.subvol != src_dir.subvol) { in bch2_rename_trans() 454 if (src_dir.subvol != dst_dir.subvol && in bch2_rename_trans() 462 src_inode_u->bi_parent_subvol = dst_dir.subvol; in bch2_rename_trans() [all …]
|
| A D | dirent.c | 89 return le32_to_cpu(d.v->d_parent_subvol) == inum.subvol; in dirent_is_visible() 188 dirent->v.d_parent_subvol = cpu_to_le32(dir.subvol); in dirent_create_key() 212 subvol_inum dir_inum = { .subvol = dir_subvol, .inum = dir }; in bch2_dirent_create_snapshot() 260 le32_to_cpu(d.v->d_parent_subvol) != dir.subvol) in bch2_dirent_read_target() 264 target->subvol = dir.subvol; in bch2_dirent_read_target() 267 target->subvol = le32_to_cpu(d.v->d_child_subvol); in bch2_dirent_read_target() 403 new_dst->v.d_parent_subvol = cpu_to_le32(dst_dir.subvol); in bch2_dirent_rename() 407 new_src->v.d_parent_subvol = cpu_to_le32(src_dir.subvol); in bch2_dirent_rename() 522 return bch2_subvolume_get_snapshot(trans, dir.subvol, &snapshot) ?: in bch2_empty_dir_trans() 523 bch2_empty_dir_snapshot(trans, dir.inum, dir.subvol, snapshot); in bch2_empty_dir_trans() [all …]
|
| A D | fs.c | 157 return a.subvol == b.subvol && a.inum == b.inum; in subvol_inum_eq() 466 struct bch_subvolume subvol; in bch2_vfs_inode_get() local 468 bch2_subvolume_get(trans, inum.subvol, true, 0, &subvol) ?: in bch2_vfs_inode_get() 489 struct bch_subvolume subvol; in __bch2_create() local 535 inum.subvol = inode_u.bi_subvol ?: dir->ei_inum.subvol; in __bch2_create() 620 ret = bch2_subvolume_get(trans, inum.subvol, true, 0, &subvol) ?: in bch2_lookup_trans() 1115 stat->subvol = inode->ei_inum.subvol; in bch2_getattr() 1497 u32 subvol; member 1522 .subvol = inode->ei_inum.subvol, in bch2_inode_to_fid() 1568 .subvol = fid.subvol, in bch2_nfs_get_inode() [all …]
|
| A D | io_misc.c | 160 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_fpunch_at() 220 prt_printf(out, "subvol=%u", le32_to_cpu(op.v->subvol)); in bch2_logged_op_truncate_to_text() 249 subvol_inum inum = { le32_to_cpu(op->v.subvol), le64_to_cpu(op->v.inum) }; in __bch2_resume_logged_op_truncate() 283 op.v.subvol = cpu_to_le32(inum.subvol); in bch2_truncate() 312 prt_printf(out, "subvol=%u", le32_to_cpu(op.v->subvol)); in bch2_logged_op_finsert_to_text() 360 subvol_inum inum = { le32_to_cpu(op->v.subvol), le64_to_cpu(op->v.inum) }; in __bch2_resume_logged_op_finsert() 380 …ret = lockrestart_do(trans, __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, warn_erro… in __bch2_resume_logged_op_finsert() 420 ret = __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, in __bch2_resume_logged_op_finsert() 517 op.v.subvol = cpu_to_le32(inum.subvol); in bch2_fcollapse_finsert()
|
| A D | logged_ops_format.h | 7 __le32 subvol; member 23 __le32 subvol; member
|
| A D | subvolume_types.h | 16 u32 subvol; /* Nonzero only if a subvolume points to this node: */ member 34 u64 subvol; member
|
| A D | io_read.h | 56 u32 subvol; member 136 rbio->subvol = inum.subvol; in bch2_read()
|
| A D | snapshot.c | 323 t->subvol = BCH_SNAPSHOT_SUBVOL(s.v) ? le32_to_cpu(s.v->subvol) : 0; in __bch2_mark_snapshot() 470 u32 subvol = 0, s; in bch2_snapshot_tree_oldest_subvol() local 476 if (s && (!subvol || s < subvol)) in bch2_snapshot_tree_oldest_subvol() 477 subvol = s; in bch2_snapshot_tree_oldest_subvol() 483 return subvol; in bch2_snapshot_tree_oldest_subvol() 537 struct bch_subvolume subvol; in check_snapshot_tree() local 563 false, 0, &subvol); in check_snapshot_tree() 816 if (fsck_err_on(s.subvol, in check_snapshot() 825 u->v.subvol = 0; in check_snapshot() 1122 s->v.subvol = 0; in bch2_snapshot_node_set_deleted() [all …]
|
| A D | snapshot_format.h | 10 __le32 subvol; member
|
| A D | fs-io.c | 220 static inline int range_has_data(struct bch_fs *c, u32 subvol, in range_has_data() argument 226 subvol, 0, k, ({ in range_has_data() 251 ret = range_has_data(c, inode->ei_inum.subvol, in __bch2_truncate_folio() 605 inode->ei_inum.subvol, &snapshot); in __bchfs_fallocate() 813 inode->ei_inum.subvol, 0, k, ({ in quota_reserve_range() 928 inum.subvol, 0, k, ({ in bch2_seek_data() 964 inum.subvol, BTREE_ITER_slots, k, ({ in bch2_seek_hole()
|
| A D | str_hash.h | 191 int ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_hash_lookup() 209 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_hash_hole() 347 return bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot) ?: in bch2_hash_set()
|
| A D | fs-ioctl.c | 103 ret = bch2_subvol_is_ro(c, inode->ei_inum.subvol) ?: in bch2_ioc_setflags() 187 ret = bch2_subvol_is_ro(c, inode->ei_inum.subvol) ?: in bch2_ioc_fssetxattr() 470 snapshot_src.subvol = inode_inum(to_bch_ei(dir)).subvol; in bch2_ioctl_subvolume_create()
|
| A D | io_write_types.h | 63 u32 subvol; member
|
| A D | io_write.h | 83 op->subvol = 0; in bch2_write_op_init()
|
| A D | fs-io-buffered.c | 158 rbio->subvol = inum.subvol; in bchfs_read() 173 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bchfs_read() 478 op->subvol = inode->ei_inum.subvol; in bch2_writepage_io_alloc()
|
| A D | fs-io-direct.c | 251 err = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_check_range_allocated() 504 dio->op.subvol = inode->ei_inum.subvol; in bch2_dio_write_loop()
|
| A D | io_read.c | 456 .subvol = rbio->subvol, in bch2_rbio_retry() 1030 rbio->subvol = orig->subvol; in __bch2_read_extent() 1173 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in __bch2_read()
|
| A D | fsck.c | 106 static int subvol_lookup(struct btree_trans *trans, u32 subvol, in subvol_lookup() argument 110 int ret = bch2_subvolume_get(trans, subvol, false, 0, &s); in subvol_lookup() 223 subvol_inum root_inum = { .subvol = le32_to_cpu(st.master_subvol) }; in lookup_lostfound() 225 struct bch_subvolume subvol; in lookup_lostfound() local 227 false, 0, &subvol); in lookup_lostfound() 233 if (!subvol.inode) { in lookup_lostfound() 238 ret = PTR_ERR_OR_ZERO(subvol); in lookup_lostfound() 242 subvol->v.inode = cpu_to_le64(reattaching_inum); in lookup_lostfound() 246 root_inum.inum = le64_to_cpu(subvol.inode); in lookup_lostfound() 292 root_inum.subvol, le32_to_cpu(st.root_snapshot)); in lookup_lostfound() [all …]
|
| A D | io_write.c | 346 .subvol = op->subvol, in bch2_write_index_default() 351 BUG_ON(!inum.subvol); in bch2_write_index_default() 361 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, in bch2_write_index_default() 1235 ret = bch2_subvolume_get_snapshot(trans, op->subvol, &snapshot); in bch2_nocow_write()
|
| A D | reflink.c | 477 ret = bch2_subvolume_get_snapshot(trans, src_inum.subvol, in bch2_remap_range() 484 ret = bch2_subvolume_get_snapshot(trans, dst_inum.subvol, in bch2_remap_range()
|
| A D | xattr.c | 174 ret = bch2_subvol_is_ro_trans(trans, inum.subvol) ?: in bch2_xattr_set() 315 inode->ei_inum.subvol, 0, k, ({ in bch2_xattr_list()
|
| A D | inode.c | 342 int ret = __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, warn); in __bch2_inode_peek() 364 bch_err_msg(trans->c, ret, "looking up inum %llu:%llu:", inum.subvol, inum.inum); in __bch2_inode_peek() 963 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_inode_delete_keys() 1023 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_inode_rm()
|
| /linux/include/linux/ |
| A D | stat.h | 56 u64 subvol; member
|
| /linux/fs/btrfs/ |
| A D | btrfs_inode.h | 557 bool subvol; member
|