Lines Matching refs:inum
114 inode_inum(inode).inum); in bch2_write_inode()
157 return a.subvol == b.subvol && a.inum == b.inum; in subvol_inum_eq()
162 const subvol_inum *inum = data; in bch2_vfs_inode_hash_fn() local
164 return jhash(&inum->inum, sizeof(inum->inum), seed); in bch2_vfs_inode_hash_fn()
197 subvol_inum inum = (subvol_inum) { .inum = p.offset }; in bch2_inode_or_descendents_is_open()
224 hash = rht_key_hashfn(ht, tbl, &inum, bch2_vfs_inodes_params); in bch2_inode_or_descendents_is_open()
230 if (inode->ei_inum.inum == inum.inum) { in bch2_inode_or_descendents_is_open()
271 static struct bch_inode_info *__bch2_inode_hash_find(struct bch_fs *c, subvol_inum inum) in __bch2_inode_hash_find() argument
273 return rhashtable_lookup_fast(&c->vfs_inodes_table, &inum, bch2_vfs_inodes_params); in __bch2_inode_hash_find()
278 subvol_inum inum) in __wait_on_freeing_inode() argument
287 if (__bch2_inode_hash_find(c, inum) == inode) in __wait_on_freeing_inode()
293 subvol_inum inum) in bch2_inode_hash_find() argument
297 inode = __bch2_inode_hash_find(c, inum); in bch2_inode_hash_find()
306 __wait_on_freeing_inode(c, inode, inum); in bch2_inode_hash_find()
309 __wait_on_freeing_inode(c, inode, inum); in bch2_inode_hash_find()
443 subvol_inum inum, in bch2_inode_hash_init_insert() argument
451 bch2_vfs_inode_init(trans, inum, inode, bi, subvol); in bch2_inode_hash_init_insert()
457 struct inode *bch2_vfs_inode_get(struct bch_fs *c, subvol_inum inum) in bch2_vfs_inode_get() argument
459 struct bch_inode_info *inode = bch2_inode_hash_find(c, NULL, inum); in bch2_vfs_inode_get()
468 bch2_subvolume_get(trans, inum.subvol, true, 0, &subvol) ?: in bch2_vfs_inode_get()
469 bch2_inode_find_by_inum_trans(trans, inum, &inode_u)) ?: in bch2_vfs_inode_get()
470 PTR_ERR_OR_ZERO(inode = bch2_inode_hash_init_insert(trans, inum, &inode_u, &subvol)); in bch2_vfs_inode_get()
488 subvol_inum inum; in __bch2_create() local
535 inum.subvol = inode_u.bi_subvol ?: dir->ei_inum.subvol; in __bch2_create()
536 inum.inum = inode_u.bi_inum; in __bch2_create()
538 ret = bch2_subvolume_get(trans, inum.subvol, true, in __bch2_create()
556 bch2_vfs_inode_init(trans, inum, inode, &inode_u, &subvol); in __bch2_create()
599 subvol_inum inum = {}; in bch2_lookup_trans() local
608 ret = bch2_dirent_read_target(trans, dir, bkey_s_c_to_dirent(k), &inum); in bch2_lookup_trans()
614 struct bch_inode_info *inode = bch2_inode_hash_find(c, trans, inum); in bch2_lookup_trans()
620 ret = bch2_subvolume_get(trans, inum.subvol, true, 0, &subvol) ?: in bch2_lookup_trans()
621 bch2_inode_find_by_inum_nowarn_trans(trans, inum, &inode_u) ?: in bch2_lookup_trans()
622 PTR_ERR_OR_ZERO(inode = bch2_inode_hash_init_insert(trans, inum, &inode_u, &subvol)); in bch2_lookup_trans()
1496 u64 inum; member
1521 .inum = inode->ei_inum.inum, in bch2_inode_to_fid()
1569 .inum = fid.inum, in bch2_nfs_get_inode()
1608 .inum = inode->ei_inode.bi_dir, in bch2_get_parent()
1728 subvol_inum inum, in bch2_vfs_inode_init() argument
1733 inode->v.i_ino = inum.inum; in bch2_vfs_inode_init()
1734 inode->ei_inum = inum; in bch2_vfs_inode_init()
1735 inode->ei_inode.bi_inum = inum.inum; in bch2_vfs_inode_init()