Lines Matching refs:handle
78 handle_t *handle; member
148 int (*xlo_journal_access)(handle_t *handle, struct ocfs2_xa_loc *loc,
150 void (*xlo_journal_dirty)(handle_t *handle, struct ocfs2_xa_loc *loc);
298 static int ocfs2_mv_xattr_buckets(struct inode *inode, handle_t *handle,
428 static int ocfs2_xattr_bucket_journal_access(handle_t *handle, in ocfs2_xattr_bucket_journal_access() argument
435 rc = ocfs2_journal_access(handle, in ocfs2_xattr_bucket_journal_access()
447 static void ocfs2_xattr_bucket_journal_dirty(handle_t *handle, in ocfs2_xattr_bucket_journal_dirty() argument
459 ocfs2_journal_dirty(handle, bucket->bu_bhs[i]); in ocfs2_xattr_bucket_journal_dirty()
719 handle_t *handle = ctxt->handle; in ocfs2_xattr_extend_allocation() local
729 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in ocfs2_xattr_extend_allocation()
737 status = ocfs2_add_clusters_in_btree(handle, in ocfs2_xattr_extend_allocation()
751 ocfs2_journal_dirty(handle, vb->vb_bh); in ocfs2_xattr_extend_allocation()
765 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation()
785 handle_t *handle = ctxt->handle; in __ocfs2_remove_xattr_range() local
790 ret = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in __ocfs2_remove_xattr_range()
797 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range()
805 ocfs2_journal_dirty(handle, vb->vb_bh); in __ocfs2_remove_xattr_range()
808 ret = ocfs2_decrease_refcount(inode, handle, in __ocfs2_remove_xattr_range()
1337 handle_t *handle, in __ocfs2_xattr_set_value_outside() argument
1375 ret = ocfs2_journal_access(handle, in __ocfs2_xattr_set_value_outside()
1392 ocfs2_journal_dirty(handle, bh); in __ocfs2_xattr_set_value_outside()
1431 static int ocfs2_xa_journal_access(handle_t *handle, struct ocfs2_xa_loc *loc, in ocfs2_xa_journal_access() argument
1434 return loc->xl_ops->xlo_journal_access(handle, loc, type); in ocfs2_xa_journal_access()
1437 static void ocfs2_xa_journal_dirty(handle_t *handle, struct ocfs2_xa_loc *loc) in ocfs2_xa_journal_dirty() argument
1439 loc->xl_ops->xlo_journal_dirty(handle, loc); in ocfs2_xa_journal_dirty()
1532 static int ocfs2_xa_block_journal_access(handle_t *handle, in ocfs2_xa_block_journal_access() argument
1544 return access(handle, INODE_CACHE(loc->xl_inode), bh, type); in ocfs2_xa_block_journal_access()
1547 static void ocfs2_xa_block_journal_dirty(handle_t *handle, in ocfs2_xa_block_journal_dirty() argument
1552 ocfs2_journal_dirty(handle, bh); in ocfs2_xa_block_journal_dirty()
1693 static int ocfs2_xa_bucket_journal_access(handle_t *handle, in ocfs2_xa_bucket_journal_access() argument
1698 return ocfs2_xattr_bucket_journal_access(handle, bucket, type); in ocfs2_xa_bucket_journal_access()
1701 static void ocfs2_xa_bucket_journal_dirty(handle_t *handle, in ocfs2_xa_bucket_journal_dirty() argument
1706 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_xa_bucket_journal_dirty()
1914 access_rc = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_value_truncate()
2202 ctxt->handle, &vb, in ocfs2_xa_store_value()
2219 ret = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_set()
2250 ocfs2_xa_journal_dirty(ctxt->handle, loc); in ocfs2_xa_set()
2380 ctxt.handle = ocfs2_start_trans(osb, ref_credits + in ocfs2_remove_value_outside()
2382 if (IS_ERR(ctxt.handle)) { in ocfs2_remove_value_outside()
2383 ret = PTR_ERR(ctxt.handle); in ocfs2_remove_value_outside()
2390 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_remove_value_outside()
2479 handle_t *handle; in ocfs2_xattr_free_block() local
2520 handle = ocfs2_start_trans(osb, OCFS2_SUBALLOC_FREE); in ocfs2_xattr_free_block()
2521 if (IS_ERR(handle)) { in ocfs2_xattr_free_block()
2522 ret = PTR_ERR(handle); in ocfs2_xattr_free_block()
2527 ret = ocfs2_free_suballoc_bits(handle, xb_alloc_inode, xb_alloc_bh, in ocfs2_xattr_free_block()
2532 ocfs2_commit_trans(osb, handle); in ocfs2_xattr_free_block()
2556 handle_t *handle; in ocfs2_xattr_remove() local
2596 handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), in ocfs2_xattr_remove()
2598 if (IS_ERR(handle)) { in ocfs2_xattr_remove()
2599 ret = PTR_ERR(handle); in ocfs2_xattr_remove()
2603 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_xattr_remove()
2616 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_xattr_remove()
2618 ocfs2_journal_dirty(handle, di_bh); in ocfs2_xattr_remove()
2620 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_xattr_remove()
2720 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), di_bh, in ocfs2_xattr_ibody_init()
2746 ocfs2_journal_dirty(ctxt->handle, di_bh); in ocfs2_xattr_ibody_init()
2863 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), in ocfs2_create_xattr_block()
2870 ret = ocfs2_claim_metadata(ctxt->handle, ctxt->meta_ac, 1, in ocfs2_create_xattr_block()
2887 ret = ocfs2_journal_access_xb(ctxt->handle, INODE_CACHE(inode), in ocfs2_create_xattr_block()
2915 ocfs2_journal_dirty(ctxt->handle, new_bh); in ocfs2_create_xattr_block()
2925 ocfs2_journal_dirty(ctxt->handle, inode_bh); in ocfs2_create_xattr_block()
3334 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3364 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3398 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3411 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), in __ocfs2_xattr_set_handle()
3422 ocfs2_journal_dirty(ctxt->handle, xis->inode_bh); in __ocfs2_xattr_set_handle()
3433 int ocfs2_xattr_set_handle(handle_t *handle, in ocfs2_xattr_set_handle() argument
3464 .handle = handle, in ocfs2_xattr_set_handle()
3628 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_xattr_set()
3629 if (IS_ERR(ctxt.handle)) { in ocfs2_xattr_set()
3630 ret = PTR_ERR(ctxt.handle); in ocfs2_xattr_set()
3636 ocfs2_update_inode_fsync_trans(ctxt.handle, inode, 0); in ocfs2_xattr_set()
3638 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_xattr_set()
4273 handle_t *handle = ctxt->handle; in ocfs2_xattr_create_index_block() local
4294 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), xb_bh, in ocfs2_xattr_create_index_block()
4301 ret = __ocfs2_claim_clusters(handle, ctxt->data_ac, in ocfs2_xattr_create_index_block()
4323 ret = ocfs2_xattr_bucket_journal_access(handle, xs->bucket, in ocfs2_xattr_create_index_block()
4331 ocfs2_xattr_bucket_journal_dirty(handle, xs->bucket); in ocfs2_xattr_create_index_block()
4352 ocfs2_journal_dirty(handle, xb_bh); in ocfs2_xattr_create_index_block()
4380 handle_t *handle, in ocfs2_defrag_xattr_bucket() argument
4408 ret = ocfs2_xattr_bucket_journal_access(handle, bucket, in ocfs2_defrag_xattr_bucket()
4477 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_defrag_xattr_bucket()
4502 handle_t *handle, in ocfs2_mv_xattr_bucket_cross_cluster() argument
4525 ret = ocfs2_mv_xattr_buckets(inode, handle, bucket_blkno(first), in ocfs2_mv_xattr_bucket_cross_cluster()
4620 handle_t *handle, in ocfs2_divide_xattr_bucket() argument
4650 ret = ocfs2_xattr_bucket_journal_access(handle, s_bucket, in ocfs2_divide_xattr_bucket()
4672 ret = ocfs2_xattr_bucket_journal_access(handle, t_bucket, in ocfs2_divide_xattr_bucket()
4760 ocfs2_xattr_bucket_journal_dirty(handle, t_bucket); in ocfs2_divide_xattr_bucket()
4781 ocfs2_xattr_bucket_journal_dirty(handle, s_bucket); in ocfs2_divide_xattr_bucket()
4797 handle_t *handle, in ocfs2_cp_xattr_bucket() argument
4844 ret = ocfs2_xattr_bucket_journal_access(handle, t_bucket, in ocfs2_cp_xattr_bucket()
4852 ocfs2_xattr_bucket_journal_dirty(handle, t_bucket); in ocfs2_cp_xattr_bucket()
4870 static int ocfs2_mv_xattr_buckets(struct inode *inode, handle_t *handle, in ocfs2_mv_xattr_buckets() argument
4911 ret = ocfs2_extend_trans(handle, credits); in ocfs2_mv_xattr_buckets()
4917 ret = ocfs2_xattr_bucket_journal_access(handle, old_first, in ocfs2_mv_xattr_buckets()
4925 ret = ocfs2_cp_xattr_bucket(inode, handle, in ocfs2_mv_xattr_buckets()
4945 ret = ocfs2_xattr_bucket_journal_access(handle, new_first, in ocfs2_mv_xattr_buckets()
4954 ocfs2_xattr_bucket_journal_dirty(handle, old_first); in ocfs2_mv_xattr_buckets()
4957 ocfs2_xattr_bucket_journal_dirty(handle, new_first); in ocfs2_mv_xattr_buckets()
4974 handle_t *handle, in ocfs2_divide_xattr_cluster() argument
4984 ret = ocfs2_extend_trans(handle, credits); in ocfs2_divide_xattr_cluster()
4991 return ocfs2_divide_xattr_bucket(inode, handle, prev_blk, in ocfs2_divide_xattr_cluster()
5022 handle_t *handle, in ocfs2_adjust_xattr_cross_cluster() argument
5038 handle, in ocfs2_adjust_xattr_cross_cluster()
5052 ret = ocfs2_mv_xattr_buckets(inode, handle, in ocfs2_adjust_xattr_cross_cluster()
5059 ret = ocfs2_divide_xattr_cluster(inode, handle, in ocfs2_adjust_xattr_cross_cluster()
5103 handle_t *handle = ctxt->handle; in ocfs2_add_new_xattr_cluster() local
5114 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh, in ocfs2_add_new_xattr_cluster()
5121 ret = __ocfs2_claim_clusters(handle, ctxt->data_ac, 1, in ocfs2_add_new_xattr_cluster()
5150 handle, in ocfs2_add_new_xattr_cluster()
5165 ret = ocfs2_insert_extent(handle, &et, v_start, block, in ocfs2_add_new_xattr_cluster()
5172 ocfs2_journal_dirty(handle, root_bh); in ocfs2_add_new_xattr_cluster()
5188 handle_t *handle, in ocfs2_extend_xattr_bucket() argument
5218 ret = ocfs2_extend_trans(handle, credits); in ocfs2_extend_xattr_bucket()
5224 ret = ocfs2_xattr_bucket_journal_access(handle, first, in ocfs2_extend_xattr_bucket()
5232 ret = ocfs2_cp_xattr_bucket(inode, handle, end_blk, in ocfs2_extend_xattr_bucket()
5240 ret = ocfs2_divide_xattr_bucket(inode, handle, target_blk, in ocfs2_extend_xattr_bucket()
5244 ocfs2_xattr_bucket_journal_dirty(handle, first); in ocfs2_extend_xattr_bucket()
5327 ctxt->handle, in ocfs2_add_new_xattr_bucket()
5396 ret = ocfs2_xattr_bucket_journal_access(ctxt->handle, bucket, in ocfs2_xattr_bucket_value_truncate()
5405 ocfs2_xattr_bucket_journal_dirty(ctxt->handle, bucket); in ocfs2_xattr_bucket_value_truncate()
5421 handle_t *handle; in ocfs2_rm_xattr_cluster() local
5462 handle = ocfs2_start_trans(osb, ocfs2_remove_extent_credits(osb->sb)); in ocfs2_rm_xattr_cluster()
5463 if (IS_ERR(handle)) { in ocfs2_rm_xattr_cluster()
5469 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh, in ocfs2_rm_xattr_cluster()
5476 ret = ocfs2_remove_extent(handle, &et, cpos, len, meta_ac, in ocfs2_rm_xattr_cluster()
5484 ocfs2_journal_dirty(handle, root_bh); in ocfs2_rm_xattr_cluster()
5486 ret = ocfs2_truncate_log_append(osb, handle, blkno, len); in ocfs2_rm_xattr_cluster()
5489 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_rm_xattr_cluster()
5492 ocfs2_commit_trans(osb, handle); in ocfs2_rm_xattr_cluster()
5561 ret = ocfs2_defrag_xattr_bucket(inode, ctxt->handle, in ocfs2_xattr_set_entry_bucket()
5683 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_delete_xattr_in_bucket()
5684 if (IS_ERR(ctxt.handle)) { in ocfs2_delete_xattr_in_bucket()
5685 ret = PTR_ERR(ctxt.handle); in ocfs2_delete_xattr_in_bucket()
5693 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_delete_xattr_in_bucket()
5720 handle_t *handle, in ocfs2_xattr_bucket_post_refcount() argument
5727 ret = ocfs2_xattr_bucket_journal_access(handle, bucket, in ocfs2_xattr_bucket_post_refcount()
5734 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_xattr_bucket_post_refcount()
6332 static int ocfs2_reflink_xattr_header(handle_t *handle, in ocfs2_reflink_xattr_header() argument
6428 ret = ocfs2_insert_extent(handle, in ocfs2_reflink_xattr_header()
6441 ret = ocfs2_increase_refcount(handle, args->ref_ci, in ocfs2_reflink_xattr_header()
6461 handle_t *handle; in ocfs2_reflink_xattr_inline() local
6485 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_inline()
6486 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_inline()
6487 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_inline()
6492 ret = ocfs2_journal_access_di(handle, INODE_CACHE(args->new_inode), in ocfs2_reflink_xattr_inline()
6505 ret = ocfs2_reflink_xattr_header(handle, args, args->old_bh, xh, in ocfs2_reflink_xattr_inline()
6529 ocfs2_journal_dirty(handle, args->new_bh); in ocfs2_reflink_xattr_inline()
6532 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_inline()
6556 ctxt.handle = ocfs2_start_trans(osb, OCFS2_XATTR_BLOCK_CREATE_CREDITS); in ocfs2_create_empty_xattr_block()
6557 if (IS_ERR(ctxt.handle)) { in ocfs2_create_empty_xattr_block()
6558 ret = PTR_ERR(ctxt.handle); in ocfs2_create_empty_xattr_block()
6570 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_create_empty_xattr_block()
6581 handle_t *handle; in ocfs2_reflink_xattr_block() local
6606 handle = ocfs2_start_trans(osb, credits + 1); in ocfs2_reflink_xattr_block()
6607 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_block()
6608 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_block()
6614 ret = ocfs2_journal_access_di(handle, in ocfs2_reflink_xattr_block()
6624 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(args->new_inode), in ocfs2_reflink_xattr_block()
6634 ret = ocfs2_reflink_xattr_header(handle, args, blk_bh, xh, in ocfs2_reflink_xattr_block()
6642 ocfs2_journal_dirty(handle, new_blk_bh); in ocfs2_reflink_xattr_block()
6651 ocfs2_journal_dirty(handle, args->new_bh); in ocfs2_reflink_xattr_block()
6655 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_block()
6827 static int ocfs2_reflink_xattr_bucket(handle_t *handle, in ocfs2_reflink_xattr_bucket() argument
6854 ret = ocfs2_xattr_bucket_journal_access(handle, in ocfs2_reflink_xattr_bucket()
6879 ocfs2_xattr_bucket_journal_dirty(handle, args->new_bucket); in ocfs2_reflink_xattr_bucket()
6881 ret = ocfs2_reflink_xattr_header(handle, args->reflink, in ocfs2_reflink_xattr_bucket()
6899 ret = ocfs2_xattr_bucket_journal_access(handle, in ocfs2_reflink_xattr_bucket()
6907 ocfs2_xattr_bucket_journal_dirty(handle, args->new_bucket); in ocfs2_reflink_xattr_bucket()
6918 static int ocfs2_reflink_xattr_buckets(handle_t *handle, in ocfs2_reflink_xattr_buckets() argument
6942 ret = ocfs2_claim_clusters(handle, data_ac, in ocfs2_reflink_xattr_buckets()
6952 ret = ocfs2_reflink_xattr_bucket(handle, blkno, in ocfs2_reflink_xattr_buckets()
6970 ret = ocfs2_insert_extent(handle, et, reflink_cpos, new_blkno, in ocfs2_reflink_xattr_buckets()
6997 handle_t *handle; in ocfs2_reflink_xattr_rec() local
7019 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_rec()
7020 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_rec()
7021 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_rec()
7026 ret = ocfs2_reflink_xattr_buckets(handle, inode, args, &et, in ocfs2_reflink_xattr_rec()
7032 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_rec()
7303 int ocfs2_init_security_set(handle_t *handle, in ocfs2_init_security_set() argument
7310 return ocfs2_xattr_set_handle(handle, inode, di_bh, in ocfs2_init_security_set()