Home
last modified time | relevance | path

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

12

/linux/fs/bcachefs/
A Dsubvolume.c32 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 Dfs-common.c86 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 Ddirent.c89 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 Dfs.c157 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 Dio_misc.c160 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 Dlogged_ops_format.h7 __le32 subvol; member
23 __le32 subvol; member
A Dsubvolume_types.h16 u32 subvol; /* Nonzero only if a subvolume points to this node: */ member
34 u64 subvol; member
A Dio_read.h56 u32 subvol; member
136 rbio->subvol = inum.subvol; in bch2_read()
A Dsnapshot.c323 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 Dsnapshot_format.h10 __le32 subvol; member
A Dfs-io.c220 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 Dstr_hash.h191 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 Dfs-ioctl.c103 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 Dio_write_types.h63 u32 subvol; member
A Dio_write.h83 op->subvol = 0; in bch2_write_op_init()
A Dfs-io-buffered.c158 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 Dfs-io-direct.c251 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 Dio_read.c456 .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 Dfsck.c106 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 Dio_write.c346 .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 Dreflink.c477 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 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()
A Dinode.c342 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 Dstat.h56 u64 subvol; member
/linux/fs/btrfs/
A Dbtrfs_inode.h557 bool subvol; member

Completed in 51 milliseconds

12