Lines Matching refs:handle

68 	handle_t *handle;  member
134 int (*xlo_journal_access)(handle_t *handle, struct ocfs2_xa_loc *loc,
136 void (*xlo_journal_dirty)(handle_t *handle, struct ocfs2_xa_loc *loc);
284 static int ocfs2_mv_xattr_buckets(struct inode *inode, handle_t *handle,
414 static int ocfs2_xattr_bucket_journal_access(handle_t *handle, in ocfs2_xattr_bucket_journal_access() argument
421 rc = ocfs2_journal_access(handle, in ocfs2_xattr_bucket_journal_access()
433 static void ocfs2_xattr_bucket_journal_dirty(handle_t *handle, in ocfs2_xattr_bucket_journal_dirty() argument
445 ocfs2_journal_dirty(handle, bucket->bu_bhs[i]); in ocfs2_xattr_bucket_journal_dirty()
701 handle_t *handle = ctxt->handle; in ocfs2_xattr_extend_allocation() local
711 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in ocfs2_xattr_extend_allocation()
719 status = ocfs2_add_clusters_in_btree(handle, in ocfs2_xattr_extend_allocation()
733 ocfs2_journal_dirty(handle, vb->vb_bh); in ocfs2_xattr_extend_allocation()
747 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation()
767 handle_t *handle = ctxt->handle; in __ocfs2_remove_xattr_range() local
772 ret = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in __ocfs2_remove_xattr_range()
779 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range()
787 ocfs2_journal_dirty(handle, vb->vb_bh); in __ocfs2_remove_xattr_range()
790 ret = ocfs2_decrease_refcount(inode, handle, in __ocfs2_remove_xattr_range()
1351 handle_t *handle, in __ocfs2_xattr_set_value_outside() argument
1389 ret = ocfs2_journal_access(handle, in __ocfs2_xattr_set_value_outside()
1406 ocfs2_journal_dirty(handle, bh); in __ocfs2_xattr_set_value_outside()
1445 static int ocfs2_xa_journal_access(handle_t *handle, struct ocfs2_xa_loc *loc, in ocfs2_xa_journal_access() argument
1448 return loc->xl_ops->xlo_journal_access(handle, loc, type); in ocfs2_xa_journal_access()
1451 static void ocfs2_xa_journal_dirty(handle_t *handle, struct ocfs2_xa_loc *loc) in ocfs2_xa_journal_dirty() argument
1453 loc->xl_ops->xlo_journal_dirty(handle, loc); in ocfs2_xa_journal_dirty()
1546 static int ocfs2_xa_block_journal_access(handle_t *handle, in ocfs2_xa_block_journal_access() argument
1558 return access(handle, INODE_CACHE(loc->xl_inode), bh, type); in ocfs2_xa_block_journal_access()
1561 static void ocfs2_xa_block_journal_dirty(handle_t *handle, in ocfs2_xa_block_journal_dirty() argument
1566 ocfs2_journal_dirty(handle, bh); in ocfs2_xa_block_journal_dirty()
1707 static int ocfs2_xa_bucket_journal_access(handle_t *handle, in ocfs2_xa_bucket_journal_access() argument
1712 return ocfs2_xattr_bucket_journal_access(handle, bucket, type); in ocfs2_xa_bucket_journal_access()
1715 static void ocfs2_xa_bucket_journal_dirty(handle_t *handle, in ocfs2_xa_bucket_journal_dirty() argument
1720 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_xa_bucket_journal_dirty()
1928 access_rc = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_value_truncate()
2215 ctxt->handle, &vb, in ocfs2_xa_store_value()
2232 ret = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_set()
2263 ocfs2_xa_journal_dirty(ctxt->handle, loc); in ocfs2_xa_set()
2393 ctxt.handle = ocfs2_start_trans(osb, ref_credits + in ocfs2_remove_value_outside()
2395 if (IS_ERR(ctxt.handle)) { in ocfs2_remove_value_outside()
2396 ret = PTR_ERR(ctxt.handle); in ocfs2_remove_value_outside()
2403 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_remove_value_outside()
2492 handle_t *handle; in ocfs2_xattr_free_block() local
2533 handle = ocfs2_start_trans(osb, OCFS2_SUBALLOC_FREE); in ocfs2_xattr_free_block()
2534 if (IS_ERR(handle)) { in ocfs2_xattr_free_block()
2535 ret = PTR_ERR(handle); in ocfs2_xattr_free_block()
2540 ret = ocfs2_free_suballoc_bits(handle, xb_alloc_inode, xb_alloc_bh, in ocfs2_xattr_free_block()
2545 ocfs2_commit_trans(osb, handle); in ocfs2_xattr_free_block()
2569 handle_t *handle; in ocfs2_xattr_remove() local
2609 handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), in ocfs2_xattr_remove()
2611 if (IS_ERR(handle)) { in ocfs2_xattr_remove()
2612 ret = PTR_ERR(handle); in ocfs2_xattr_remove()
2616 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_xattr_remove()
2629 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_xattr_remove()
2631 ocfs2_journal_dirty(handle, di_bh); in ocfs2_xattr_remove()
2633 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_xattr_remove()
2733 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), di_bh, in ocfs2_xattr_ibody_init()
2759 ocfs2_journal_dirty(ctxt->handle, di_bh); in ocfs2_xattr_ibody_init()
2876 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), in ocfs2_create_xattr_block()
2883 ret = ocfs2_claim_metadata(ctxt->handle, ctxt->meta_ac, 1, in ocfs2_create_xattr_block()
2900 ret = ocfs2_journal_access_xb(ctxt->handle, INODE_CACHE(inode), in ocfs2_create_xattr_block()
2928 ocfs2_journal_dirty(ctxt->handle, new_bh); in ocfs2_create_xattr_block()
2938 ocfs2_journal_dirty(ctxt->handle, inode_bh); in ocfs2_create_xattr_block()
3347 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3377 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3411 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3424 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), in __ocfs2_xattr_set_handle()
3435 ocfs2_journal_dirty(ctxt->handle, xis->inode_bh); in __ocfs2_xattr_set_handle()
3446 int ocfs2_xattr_set_handle(handle_t *handle, in ocfs2_xattr_set_handle() argument
3477 .handle = handle, in ocfs2_xattr_set_handle()
3643 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_xattr_set()
3644 if (IS_ERR(ctxt.handle)) { in ocfs2_xattr_set()
3645 ret = PTR_ERR(ctxt.handle); in ocfs2_xattr_set()
3651 ocfs2_update_inode_fsync_trans(ctxt.handle, inode, 0); in ocfs2_xattr_set()
3653 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_xattr_set()
4281 handle_t *handle = ctxt->handle; in ocfs2_xattr_create_index_block() local
4302 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), xb_bh, in ocfs2_xattr_create_index_block()
4309 ret = __ocfs2_claim_clusters(handle, ctxt->data_ac, in ocfs2_xattr_create_index_block()
4331 ret = ocfs2_xattr_bucket_journal_access(handle, xs->bucket, in ocfs2_xattr_create_index_block()
4339 ocfs2_xattr_bucket_journal_dirty(handle, xs->bucket); in ocfs2_xattr_create_index_block()
4360 ocfs2_journal_dirty(handle, xb_bh); in ocfs2_xattr_create_index_block()
4388 handle_t *handle, in ocfs2_defrag_xattr_bucket() argument
4416 ret = ocfs2_xattr_bucket_journal_access(handle, bucket, in ocfs2_defrag_xattr_bucket()
4485 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_defrag_xattr_bucket()
4510 handle_t *handle, in ocfs2_mv_xattr_bucket_cross_cluster() argument
4533 ret = ocfs2_mv_xattr_buckets(inode, handle, bucket_blkno(first), in ocfs2_mv_xattr_bucket_cross_cluster()
4628 handle_t *handle, in ocfs2_divide_xattr_bucket() argument
4658 ret = ocfs2_xattr_bucket_journal_access(handle, s_bucket, in ocfs2_divide_xattr_bucket()
4680 ret = ocfs2_xattr_bucket_journal_access(handle, t_bucket, in ocfs2_divide_xattr_bucket()
4768 ocfs2_xattr_bucket_journal_dirty(handle, t_bucket); in ocfs2_divide_xattr_bucket()
4789 ocfs2_xattr_bucket_journal_dirty(handle, s_bucket); in ocfs2_divide_xattr_bucket()
4805 handle_t *handle, in ocfs2_cp_xattr_bucket() argument
4852 ret = ocfs2_xattr_bucket_journal_access(handle, t_bucket, in ocfs2_cp_xattr_bucket()
4860 ocfs2_xattr_bucket_journal_dirty(handle, t_bucket); in ocfs2_cp_xattr_bucket()
4878 static int ocfs2_mv_xattr_buckets(struct inode *inode, handle_t *handle, in ocfs2_mv_xattr_buckets() argument
4919 ret = ocfs2_extend_trans(handle, credits); in ocfs2_mv_xattr_buckets()
4925 ret = ocfs2_xattr_bucket_journal_access(handle, old_first, in ocfs2_mv_xattr_buckets()
4933 ret = ocfs2_cp_xattr_bucket(inode, handle, in ocfs2_mv_xattr_buckets()
4953 ret = ocfs2_xattr_bucket_journal_access(handle, new_first, in ocfs2_mv_xattr_buckets()
4962 ocfs2_xattr_bucket_journal_dirty(handle, old_first); in ocfs2_mv_xattr_buckets()
4965 ocfs2_xattr_bucket_journal_dirty(handle, new_first); in ocfs2_mv_xattr_buckets()
4982 handle_t *handle, in ocfs2_divide_xattr_cluster() argument
4992 ret = ocfs2_extend_trans(handle, credits); in ocfs2_divide_xattr_cluster()
4999 return ocfs2_divide_xattr_bucket(inode, handle, prev_blk, in ocfs2_divide_xattr_cluster()
5030 handle_t *handle, in ocfs2_adjust_xattr_cross_cluster() argument
5046 handle, in ocfs2_adjust_xattr_cross_cluster()
5060 ret = ocfs2_mv_xattr_buckets(inode, handle, in ocfs2_adjust_xattr_cross_cluster()
5067 ret = ocfs2_divide_xattr_cluster(inode, handle, in ocfs2_adjust_xattr_cross_cluster()
5111 handle_t *handle = ctxt->handle; in ocfs2_add_new_xattr_cluster() local
5122 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh, in ocfs2_add_new_xattr_cluster()
5129 ret = __ocfs2_claim_clusters(handle, ctxt->data_ac, 1, in ocfs2_add_new_xattr_cluster()
5158 handle, in ocfs2_add_new_xattr_cluster()
5173 ret = ocfs2_insert_extent(handle, &et, v_start, block, in ocfs2_add_new_xattr_cluster()
5180 ocfs2_journal_dirty(handle, root_bh); in ocfs2_add_new_xattr_cluster()
5196 handle_t *handle, in ocfs2_extend_xattr_bucket() argument
5226 ret = ocfs2_extend_trans(handle, credits); in ocfs2_extend_xattr_bucket()
5232 ret = ocfs2_xattr_bucket_journal_access(handle, first, in ocfs2_extend_xattr_bucket()
5240 ret = ocfs2_cp_xattr_bucket(inode, handle, end_blk, in ocfs2_extend_xattr_bucket()
5248 ret = ocfs2_divide_xattr_bucket(inode, handle, target_blk, in ocfs2_extend_xattr_bucket()
5252 ocfs2_xattr_bucket_journal_dirty(handle, first); in ocfs2_extend_xattr_bucket()
5335 ctxt->handle, in ocfs2_add_new_xattr_bucket()
5404 ret = ocfs2_xattr_bucket_journal_access(ctxt->handle, bucket, in ocfs2_xattr_bucket_value_truncate()
5413 ocfs2_xattr_bucket_journal_dirty(ctxt->handle, bucket); in ocfs2_xattr_bucket_value_truncate()
5429 handle_t *handle; in ocfs2_rm_xattr_cluster() local
5470 handle = ocfs2_start_trans(osb, ocfs2_remove_extent_credits(osb->sb)); in ocfs2_rm_xattr_cluster()
5471 if (IS_ERR(handle)) { in ocfs2_rm_xattr_cluster()
5477 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh, in ocfs2_rm_xattr_cluster()
5484 ret = ocfs2_remove_extent(handle, &et, cpos, len, meta_ac, in ocfs2_rm_xattr_cluster()
5492 ocfs2_journal_dirty(handle, root_bh); in ocfs2_rm_xattr_cluster()
5494 ret = ocfs2_truncate_log_append(osb, handle, blkno, len); in ocfs2_rm_xattr_cluster()
5497 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_rm_xattr_cluster()
5500 ocfs2_commit_trans(osb, handle); in ocfs2_rm_xattr_cluster()
5569 ret = ocfs2_defrag_xattr_bucket(inode, ctxt->handle, in ocfs2_xattr_set_entry_bucket()
5691 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_delete_xattr_in_bucket()
5692 if (IS_ERR(ctxt.handle)) { in ocfs2_delete_xattr_in_bucket()
5693 ret = PTR_ERR(ctxt.handle); in ocfs2_delete_xattr_in_bucket()
5701 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_delete_xattr_in_bucket()
5728 handle_t *handle, in ocfs2_xattr_bucket_post_refcount() argument
5735 ret = ocfs2_xattr_bucket_journal_access(handle, bucket, in ocfs2_xattr_bucket_post_refcount()
5742 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_xattr_bucket_post_refcount()
6340 static int ocfs2_reflink_xattr_header(handle_t *handle, in ocfs2_reflink_xattr_header() argument
6436 ret = ocfs2_insert_extent(handle, in ocfs2_reflink_xattr_header()
6449 ret = ocfs2_increase_refcount(handle, args->ref_ci, in ocfs2_reflink_xattr_header()
6469 handle_t *handle; in ocfs2_reflink_xattr_inline() local
6493 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_inline()
6494 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_inline()
6495 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_inline()
6500 ret = ocfs2_journal_access_di(handle, INODE_CACHE(args->new_inode), in ocfs2_reflink_xattr_inline()
6513 ret = ocfs2_reflink_xattr_header(handle, args, args->old_bh, xh, in ocfs2_reflink_xattr_inline()
6528 ocfs2_journal_dirty(handle, args->new_bh); in ocfs2_reflink_xattr_inline()
6531 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_inline()
6555 ctxt.handle = ocfs2_start_trans(osb, OCFS2_XATTR_BLOCK_CREATE_CREDITS); in ocfs2_create_empty_xattr_block()
6556 if (IS_ERR(ctxt.handle)) { in ocfs2_create_empty_xattr_block()
6557 ret = PTR_ERR(ctxt.handle); in ocfs2_create_empty_xattr_block()
6569 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_create_empty_xattr_block()
6580 handle_t *handle; in ocfs2_reflink_xattr_block() local
6605 handle = ocfs2_start_trans(osb, credits + 1); in ocfs2_reflink_xattr_block()
6606 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_block()
6607 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_block()
6613 ret = ocfs2_journal_access_di(handle, in ocfs2_reflink_xattr_block()
6623 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(args->new_inode), in ocfs2_reflink_xattr_block()
6633 ret = ocfs2_reflink_xattr_header(handle, args, blk_bh, xh, in ocfs2_reflink_xattr_block()
6641 ocfs2_journal_dirty(handle, new_blk_bh); in ocfs2_reflink_xattr_block()
6650 ocfs2_journal_dirty(handle, args->new_bh); in ocfs2_reflink_xattr_block()
6654 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_block()
6826 static int ocfs2_reflink_xattr_bucket(handle_t *handle, in ocfs2_reflink_xattr_bucket() argument
6853 ret = ocfs2_xattr_bucket_journal_access(handle, in ocfs2_reflink_xattr_bucket()
6878 ocfs2_xattr_bucket_journal_dirty(handle, args->new_bucket); in ocfs2_reflink_xattr_bucket()
6880 ret = ocfs2_reflink_xattr_header(handle, args->reflink, in ocfs2_reflink_xattr_bucket()
6898 ret = ocfs2_xattr_bucket_journal_access(handle, in ocfs2_reflink_xattr_bucket()
6906 ocfs2_xattr_bucket_journal_dirty(handle, args->new_bucket); in ocfs2_reflink_xattr_bucket()
6917 static int ocfs2_reflink_xattr_buckets(handle_t *handle, in ocfs2_reflink_xattr_buckets() argument
6941 ret = ocfs2_claim_clusters(handle, data_ac, in ocfs2_reflink_xattr_buckets()
6951 ret = ocfs2_reflink_xattr_bucket(handle, blkno, in ocfs2_reflink_xattr_buckets()
6969 ret = ocfs2_insert_extent(handle, et, reflink_cpos, new_blkno, in ocfs2_reflink_xattr_buckets()
6996 handle_t *handle; in ocfs2_reflink_xattr_rec() local
7018 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_rec()
7019 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_rec()
7020 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_rec()
7025 ret = ocfs2_reflink_xattr_buckets(handle, inode, args, &et, in ocfs2_reflink_xattr_rec()
7031 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_rec()
7309 int ocfs2_init_security_set(handle_t *handle, in ocfs2_init_security_set() argument
7316 return ocfs2_xattr_set_handle(handle, inode, di_bh, in ocfs2_init_security_set()