Lines Matching refs:inode_iter
32 struct btree_iter inode_iter = { NULL }; in bch2_create_trans() local
57 ret = bch2_inode_create(trans, &inode_iter, new_inode, snapshot, cpu); in bch2_create_trans()
81 ret = bch2_inode_peek(trans, &inode_iter, new_inode, snapshot_src, in bch2_create_trans()
175 inode_iter.flags &= ~BTREE_ITER_all_snapshots; in bch2_create_trans()
176 bch2_btree_iter_set_snapshot(&inode_iter, snapshot); in bch2_create_trans()
178 ret = bch2_btree_iter_traverse(&inode_iter) ?: in bch2_create_trans()
179 bch2_inode_write(trans, &inode_iter, new_inode); in bch2_create_trans()
181 bch2_trans_iter_exit(trans, &inode_iter); in bch2_create_trans()
193 struct btree_iter inode_iter = { NULL }; in bch2_link_trans() local
202 ret = bch2_inode_peek(trans, &inode_iter, inode_u, inum, BTREE_ITER_intent); in bch2_link_trans()
235 bch2_inode_write(trans, &inode_iter, inode_u); in bch2_link_trans()
238 bch2_trans_iter_exit(trans, &inode_iter); in bch2_link_trans()
252 struct btree_iter inode_iter = { NULL }; in bch2_unlink_trans() local
270 ret = bch2_inode_peek(trans, &inode_iter, inode_u, inum, in bch2_unlink_trans()
328 bch2_inode_write(trans, &inode_iter, inode_u); in bch2_unlink_trans()
330 bch2_trans_iter_exit(trans, &inode_iter); in bch2_unlink_trans()