Lines Matching refs:handle
76 handle_t *handle,
170 static int ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle, in ocfs2_dx_dir_link_trailer() argument
178 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer()
190 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_link_trailer()
1106 int ocfs2_update_entry(struct inode *dir, handle_t *handle, in ocfs2_update_entry() argument
1124 ret = access(handle, INODE_CACHE(dir), de_bh, in ocfs2_update_entry()
1134 ocfs2_journal_dirty(handle, de_bh); in ocfs2_update_entry()
1144 static int __ocfs2_delete_entry(handle_t *handle, struct inode *dir, in __ocfs2_delete_entry() argument
1166 status = access(handle, INODE_CACHE(dir), bh, in __ocfs2_delete_entry()
1178 ocfs2_journal_dirty(handle, bh); in __ocfs2_delete_entry()
1248 static int ocfs2_delete_entry_dx(handle_t *handle, struct inode *dir, in ocfs2_delete_entry_dx() argument
1314 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_delete_entry_dx()
1322 ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), in ocfs2_delete_entry_dx()
1334 ret = __ocfs2_delete_entry(handle, dir, lookup->dl_entry, in ocfs2_delete_entry_dx()
1346 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1350 ocfs2_journal_dirty(handle, leaf_bh); in ocfs2_delete_entry_dx()
1353 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1358 ocfs2_journal_dirty(handle, lookup->dl_dx_leaf_bh); in ocfs2_delete_entry_dx()
1364 static inline int ocfs2_delete_entry_id(handle_t *handle, in ocfs2_delete_entry_id() argument
1383 ret = __ocfs2_delete_entry(handle, dir, de_del, bh, data->id_data, in ocfs2_delete_entry_id()
1391 static inline int ocfs2_delete_entry_el(handle_t *handle, in ocfs2_delete_entry_el() argument
1396 return __ocfs2_delete_entry(handle, dir, de_del, bh, bh->b_data, in ocfs2_delete_entry_el()
1404 int ocfs2_delete_entry(handle_t *handle, in ocfs2_delete_entry() argument
1409 return ocfs2_delete_entry_dx(handle, dir, res); in ocfs2_delete_entry()
1412 return ocfs2_delete_entry_id(handle, dir, res->dl_entry, in ocfs2_delete_entry()
1415 return ocfs2_delete_entry_el(handle, dir, res->dl_entry, in ocfs2_delete_entry()
1473 static int __ocfs2_dx_dir_leaf_insert(struct inode *dir, handle_t *handle, in __ocfs2_dx_dir_leaf_insert() argument
1481 ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dx_leaf_bh, in __ocfs2_dx_dir_leaf_insert()
1490 ocfs2_journal_dirty(handle, dx_leaf_bh); in __ocfs2_dx_dir_leaf_insert()
1496 static void ocfs2_dx_inline_root_insert(struct inode *dir, handle_t *handle, in ocfs2_dx_inline_root_insert() argument
1504 static int ocfs2_dx_dir_insert(struct inode *dir, handle_t *handle, in ocfs2_dx_dir_insert() argument
1511 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_insert()
1520 ocfs2_dx_inline_root_insert(dir, handle, in ocfs2_dx_dir_insert()
1525 ret = __ocfs2_dx_dir_leaf_insert(dir, handle, &lookup->dl_hinfo, in ocfs2_dx_dir_insert()
1533 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_insert()
1540 handle_t *handle, in ocfs2_remove_block_from_free_list() argument
1562 ocfs2_journal_dirty(handle, bh); in ocfs2_remove_block_from_free_list()
1563 ocfs2_journal_dirty(handle, lookup->dl_leaf_bh); in ocfs2_remove_block_from_free_list()
1570 static void ocfs2_recalc_free_list(struct inode *dir, handle_t *handle, in ocfs2_recalc_free_list() argument
1586 ocfs2_journal_dirty(handle, lookup->dl_leaf_bh); in ocfs2_recalc_free_list()
1588 ocfs2_remove_block_from_free_list(dir, handle, lookup); in ocfs2_recalc_free_list()
1598 int __ocfs2_add_entry(handle_t *handle, in __ocfs2_add_entry() argument
1631 retval = ocfs2_journal_access_dr(handle, in __ocfs2_add_entry()
1636 retval = ocfs2_journal_access_db(handle, in __ocfs2_add_entry()
1681 retval = ocfs2_mark_inode_dirty(handle, dir, parent_fe_bh); in __ocfs2_add_entry()
1688 retval = ocfs2_journal_access_di(handle, in __ocfs2_add_entry()
1693 retval = ocfs2_journal_access_db(handle, in __ocfs2_add_entry()
1700 handle, in __ocfs2_add_entry()
1730 ocfs2_recalc_free_list(dir, handle, lookup); in __ocfs2_add_entry()
1733 ocfs2_journal_dirty(handle, insert_bh); in __ocfs2_add_entry()
2207 handle_t *handle, in ocfs2_fill_new_dir_id() argument
2217 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_fill_new_dir_id()
2225 ocfs2_journal_dirty(handle, di_bh); in ocfs2_fill_new_dir_id()
2231 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in ocfs2_fill_new_dir_id()
2240 handle_t *handle, in ocfs2_fill_new_dir_el() argument
2255 status = ocfs2_do_extend_dir(osb->sb, handle, inode, fe_bh, in ocfs2_fill_new_dir_el()
2264 status = ocfs2_journal_access_db(handle, INODE_CACHE(inode), new_bh, in ocfs2_fill_new_dir_el()
2287 ocfs2_journal_dirty(handle, new_bh); in ocfs2_fill_new_dir_el()
2292 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); in ocfs2_fill_new_dir_el()
2310 handle_t *handle, struct inode *dir, in ocfs2_dx_dir_attach_index() argument
2327 ret = ocfs2_claim_metadata(handle, meta_ac, 1, &suballoc_loc, in ocfs2_dx_dir_attach_index()
2345 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2375 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2377 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_attach_index()
2391 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_attach_index()
2402 handle_t *handle, struct inode *dir, in ocfs2_dx_dir_format_cluster() argument
2420 ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), bh, in ocfs2_dx_dir_format_cluster()
2441 ocfs2_journal_dirty(handle, bh); in ocfs2_dx_dir_format_cluster()
2455 u32 cpos, handle_t *handle, in __ocfs2_dx_dir_new_cluster() argument
2471 ret = __ocfs2_claim_clusters(handle, data_ac, 1, 1, &phys, &num); in __ocfs2_dx_dir_new_cluster()
2482 ret = ocfs2_dx_dir_format_cluster(osb, handle, dir, dx_leaves, in __ocfs2_dx_dir_new_cluster()
2496 u32 cpos, handle_t *handle, in ocfs2_dx_dir_new_cluster() argument
2505 ret = __ocfs2_dx_dir_new_cluster(dir, cpos, handle, data_ac, dx_leaves, in ocfs2_dx_dir_new_cluster()
2512 ret = ocfs2_insert_extent(handle, et, cpos, phys_blkno, 1, 0, in ocfs2_dx_dir_new_cluster()
2535 handle_t *handle, in ocfs2_fill_new_dir_dx() argument
2560 ret = ocfs2_fill_new_dir_el(osb, handle, parent, inode, di_bh, in ocfs2_fill_new_dir_dx()
2567 ret = ocfs2_dx_dir_attach_index(osb, handle, inode, di_bh, leaf_bh, in ocfs2_fill_new_dir_dx()
2590 handle_t *handle, in ocfs2_fill_new_dir() argument
2601 return ocfs2_fill_new_dir_id(osb, handle, parent, inode, fe_bh); in ocfs2_fill_new_dir()
2604 return ocfs2_fill_new_dir_dx(osb, handle, parent, inode, fe_bh, in ocfs2_fill_new_dir()
2607 return ocfs2_fill_new_dir_el(osb, handle, parent, inode, fe_bh, in ocfs2_fill_new_dir()
2612 handle_t *handle, in ocfs2_dx_dir_index_block() argument
2640 ret = __ocfs2_dx_dir_leaf_insert(dir, handle, &hinfo, in ocfs2_dx_dir_index_block()
2810 handle_t *handle; in ocfs2_expand_inline_dir() local
2869 handle = ocfs2_start_trans(osb, credits); in ocfs2_expand_inline_dir()
2870 if (IS_ERR(handle)) { in ocfs2_expand_inline_dir()
2871 ret = PTR_ERR(handle); in ocfs2_expand_inline_dir()
2888 ret = __ocfs2_dx_dir_new_cluster(dir, 0, handle, data_ac, in ocfs2_expand_inline_dir()
2905 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, &len); in ocfs2_expand_inline_dir()
2927 ret = ocfs2_journal_access_db(handle, INODE_CACHE(dir), dirdata_bh, in ocfs2_expand_inline_dir()
2948 ocfs2_update_inode_fsync_trans(handle, dir, 1); in ocfs2_expand_inline_dir()
2949 ocfs2_journal_dirty(handle, dirdata_bh); in ocfs2_expand_inline_dir()
2960 ret = ocfs2_dx_dir_index_block(dir, handle, dx_leaves, in ocfs2_expand_inline_dir()
2977 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_expand_inline_dir()
2997 ocfs2_update_inode_fsync_trans(handle, dir, 1); in ocfs2_expand_inline_dir()
3003 ret = ocfs2_insert_extent(handle, &et, 0, blkno, len, in ocfs2_expand_inline_dir()
3016 ocfs2_journal_dirty(handle, di_bh); in ocfs2_expand_inline_dir()
3019 ret = ocfs2_dx_dir_attach_index(osb, handle, dir, di_bh, in ocfs2_expand_inline_dir()
3034 ret = ocfs2_insert_extent(handle, &dx_et, 0, in ocfs2_expand_inline_dir()
3046 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_expand_inline_dir()
3054 ret = ocfs2_insert_extent(handle, &et, 1, in ocfs2_expand_inline_dir()
3086 ocfs2_commit_trans(osb, handle); in ocfs2_expand_inline_dir()
3109 handle_t *handle, in ocfs2_do_extend_dir() argument
3134 1, 0, parent_fe_bh, handle, in ocfs2_do_extend_dir()
3187 handle_t *handle = NULL; in ocfs2_extend_dir() local
3288 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_dir()
3289 if (IS_ERR(handle)) { in ocfs2_extend_dir()
3290 status = PTR_ERR(handle); in ocfs2_extend_dir()
3291 handle = NULL; in ocfs2_extend_dir()
3296 status = ocfs2_do_extend_dir(osb->sb, handle, dir, parent_fe_bh, in ocfs2_extend_dir()
3305 status = ocfs2_journal_access_db(handle, INODE_CACHE(dir), new_bh, in ocfs2_extend_dir()
3321 status = ocfs2_dx_dir_link_trailer(dir, handle, in ocfs2_extend_dir()
3331 ocfs2_update_inode_fsync_trans(handle, dir, 1); in ocfs2_extend_dir()
3332 ocfs2_journal_dirty(handle, new_bh); in ocfs2_extend_dir()
3337 status = ocfs2_mark_inode_dirty(handle, dir, parent_fe_bh); in ocfs2_extend_dir()
3347 if (handle) in ocfs2_extend_dir()
3348 ocfs2_commit_trans(osb, handle); in ocfs2_extend_dir()
3655 handle_t *handle, in ocfs2_dx_dir_transfer_leaf() argument
3693 ocfs2_journal_dirty(handle, orig_dx_leaves[i]); in ocfs2_dx_dir_transfer_leaf()
3694 ocfs2_journal_dirty(handle, new_dx_leaves[i]); in ocfs2_dx_dir_transfer_leaf()
3727 handle_t *handle = NULL; in ocfs2_dx_dir_rebalance() local
3776 handle = ocfs2_start_trans(osb, credits); in ocfs2_dx_dir_rebalance()
3777 if (IS_ERR(handle)) { in ocfs2_dx_dir_rebalance()
3778 ret = PTR_ERR(handle); in ocfs2_dx_dir_rebalance()
3779 handle = NULL; in ocfs2_dx_dir_rebalance()
3790 ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dx_leaf_bh, in ocfs2_dx_dir_rebalance()
3804 ocfs2_journal_dirty(handle, dx_leaf_bh); in ocfs2_dx_dir_rebalance()
3849 ret = ocfs2_dx_dir_new_cluster(dir, &et, cpos, handle, in ocfs2_dx_dir_rebalance()
3858 ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), in ocfs2_dx_dir_rebalance()
3866 ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), in ocfs2_dx_dir_rebalance()
3875 ocfs2_dx_dir_transfer_leaf(dir, split_hash, handle, tmp_dx_leaf, in ocfs2_dx_dir_rebalance()
3883 ocfs2_update_inode_fsync_trans(handle, dir, 1); in ocfs2_dx_dir_rebalance()
3884 ocfs2_commit_trans(osb, handle); in ocfs2_dx_dir_rebalance()
4037 handle_t *handle = NULL; in ocfs2_expand_inline_dx_root() local
4056 handle = ocfs2_start_trans(osb, ocfs2_calc_dxi_expand_credits(osb->sb)); in ocfs2_expand_inline_dx_root()
4057 if (IS_ERR(handle)) { in ocfs2_expand_inline_dx_root()
4058 ret = PTR_ERR(handle); in ocfs2_expand_inline_dx_root()
4074 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4081 ret = __ocfs2_dx_dir_new_cluster(dir, 0, handle, data_ac, dx_leaves, in ocfs2_expand_inline_dx_root()
4117 ret = ocfs2_insert_extent(handle, &et, 0, insert_blkno, 1, 0, NULL); in ocfs2_expand_inline_dx_root()
4122 ocfs2_update_inode_fsync_trans(handle, dir, 1); in ocfs2_expand_inline_dx_root()
4123 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4130 ocfs2_commit_trans(osb, handle); in ocfs2_expand_inline_dx_root()
4348 handle_t *handle; in ocfs2_dx_dir_remove_index() local
4371 handle = ocfs2_start_trans(osb, OCFS2_DX_ROOT_REMOVE_CREDITS); in ocfs2_dx_dir_remove_index()
4372 if (IS_ERR(handle)) { in ocfs2_dx_dir_remove_index()
4373 ret = PTR_ERR(handle); in ocfs2_dx_dir_remove_index()
4378 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_remove_index()
4390 ocfs2_update_inode_fsync_trans(handle, dir, 1); in ocfs2_dx_dir_remove_index()
4392 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_remove_index()
4400 ret = ocfs2_free_suballoc_bits(handle, dx_alloc_inode, dx_alloc_bh, in ocfs2_dx_dir_remove_index()
4406 ocfs2_commit_trans(osb, handle); in ocfs2_dx_dir_remove_index()