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()
713 handle_t *handle = ctxt->handle; in ocfs2_xattr_extend_allocation() local
723 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in ocfs2_xattr_extend_allocation()
731 status = ocfs2_add_clusters_in_btree(handle, in ocfs2_xattr_extend_allocation()
745 ocfs2_journal_dirty(handle, vb->vb_bh); in ocfs2_xattr_extend_allocation()
759 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation()
779 handle_t *handle = ctxt->handle; in __ocfs2_remove_xattr_range() local
784 ret = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in __ocfs2_remove_xattr_range()
791 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range()
799 ocfs2_journal_dirty(handle, vb->vb_bh); in __ocfs2_remove_xattr_range()
802 ret = ocfs2_decrease_refcount(inode, handle, in __ocfs2_remove_xattr_range()
1331 handle_t *handle, in __ocfs2_xattr_set_value_outside() argument
1369 ret = ocfs2_journal_access(handle, in __ocfs2_xattr_set_value_outside()
1386 ocfs2_journal_dirty(handle, bh); in __ocfs2_xattr_set_value_outside()
1425 static int ocfs2_xa_journal_access(handle_t *handle, struct ocfs2_xa_loc *loc, in ocfs2_xa_journal_access() argument
1428 return loc->xl_ops->xlo_journal_access(handle, loc, type); in ocfs2_xa_journal_access()
1431 static void ocfs2_xa_journal_dirty(handle_t *handle, struct ocfs2_xa_loc *loc) in ocfs2_xa_journal_dirty() argument
1433 loc->xl_ops->xlo_journal_dirty(handle, loc); in ocfs2_xa_journal_dirty()
1526 static int ocfs2_xa_block_journal_access(handle_t *handle, in ocfs2_xa_block_journal_access() argument
1538 return access(handle, INODE_CACHE(loc->xl_inode), bh, type); in ocfs2_xa_block_journal_access()
1541 static void ocfs2_xa_block_journal_dirty(handle_t *handle, in ocfs2_xa_block_journal_dirty() argument
1546 ocfs2_journal_dirty(handle, bh); in ocfs2_xa_block_journal_dirty()
1687 static int ocfs2_xa_bucket_journal_access(handle_t *handle, in ocfs2_xa_bucket_journal_access() argument
1692 return ocfs2_xattr_bucket_journal_access(handle, bucket, type); in ocfs2_xa_bucket_journal_access()
1695 static void ocfs2_xa_bucket_journal_dirty(handle_t *handle, in ocfs2_xa_bucket_journal_dirty() argument
1700 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_xa_bucket_journal_dirty()
1908 access_rc = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_value_truncate()
2196 ctxt->handle, &vb, in ocfs2_xa_store_value()
2213 ret = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_set()
2244 ocfs2_xa_journal_dirty(ctxt->handle, loc); in ocfs2_xa_set()
2374 ctxt.handle = ocfs2_start_trans(osb, ref_credits + in ocfs2_remove_value_outside()
2376 if (IS_ERR(ctxt.handle)) { in ocfs2_remove_value_outside()
2377 ret = PTR_ERR(ctxt.handle); in ocfs2_remove_value_outside()
2384 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_remove_value_outside()
2473 handle_t *handle; in ocfs2_xattr_free_block() local
2514 handle = ocfs2_start_trans(osb, OCFS2_SUBALLOC_FREE); in ocfs2_xattr_free_block()
2515 if (IS_ERR(handle)) { in ocfs2_xattr_free_block()
2516 ret = PTR_ERR(handle); in ocfs2_xattr_free_block()
2521 ret = ocfs2_free_suballoc_bits(handle, xb_alloc_inode, xb_alloc_bh, in ocfs2_xattr_free_block()
2526 ocfs2_commit_trans(osb, handle); in ocfs2_xattr_free_block()
2550 handle_t *handle; in ocfs2_xattr_remove() local
2590 handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), in ocfs2_xattr_remove()
2592 if (IS_ERR(handle)) { in ocfs2_xattr_remove()
2593 ret = PTR_ERR(handle); in ocfs2_xattr_remove()
2597 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_xattr_remove()
2610 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_xattr_remove()
2612 ocfs2_journal_dirty(handle, di_bh); in ocfs2_xattr_remove()
2614 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_xattr_remove()
2714 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), di_bh, in ocfs2_xattr_ibody_init()
2740 ocfs2_journal_dirty(ctxt->handle, di_bh); in ocfs2_xattr_ibody_init()
2857 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), in ocfs2_create_xattr_block()
2864 ret = ocfs2_claim_metadata(ctxt->handle, ctxt->meta_ac, 1, in ocfs2_create_xattr_block()
2881 ret = ocfs2_journal_access_xb(ctxt->handle, INODE_CACHE(inode), in ocfs2_create_xattr_block()
2909 ocfs2_journal_dirty(ctxt->handle, new_bh); in ocfs2_create_xattr_block()
2919 ocfs2_journal_dirty(ctxt->handle, inode_bh); in ocfs2_create_xattr_block()
3328 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3358 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3392 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3405 ret = ocfs2_journal_access_di(ctxt->handle, INODE_CACHE(inode), in __ocfs2_xattr_set_handle()
3416 ocfs2_journal_dirty(ctxt->handle, xis->inode_bh); in __ocfs2_xattr_set_handle()
3427 int ocfs2_xattr_set_handle(handle_t *handle, in ocfs2_xattr_set_handle() argument
3458 .handle = handle, in ocfs2_xattr_set_handle()
3622 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_xattr_set()
3623 if (IS_ERR(ctxt.handle)) { in ocfs2_xattr_set()
3624 ret = PTR_ERR(ctxt.handle); in ocfs2_xattr_set()
3630 ocfs2_update_inode_fsync_trans(ctxt.handle, inode, 0); in ocfs2_xattr_set()
3632 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_xattr_set()
4265 handle_t *handle = ctxt->handle; in ocfs2_xattr_create_index_block() local
4286 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), xb_bh, in ocfs2_xattr_create_index_block()
4293 ret = __ocfs2_claim_clusters(handle, ctxt->data_ac, in ocfs2_xattr_create_index_block()
4315 ret = ocfs2_xattr_bucket_journal_access(handle, xs->bucket, in ocfs2_xattr_create_index_block()
4323 ocfs2_xattr_bucket_journal_dirty(handle, xs->bucket); in ocfs2_xattr_create_index_block()
4344 ocfs2_journal_dirty(handle, xb_bh); in ocfs2_xattr_create_index_block()
4372 handle_t *handle, in ocfs2_defrag_xattr_bucket() argument
4400 ret = ocfs2_xattr_bucket_journal_access(handle, bucket, in ocfs2_defrag_xattr_bucket()
4469 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_defrag_xattr_bucket()
4494 handle_t *handle, in ocfs2_mv_xattr_bucket_cross_cluster() argument
4517 ret = ocfs2_mv_xattr_buckets(inode, handle, bucket_blkno(first), in ocfs2_mv_xattr_bucket_cross_cluster()
4612 handle_t *handle, in ocfs2_divide_xattr_bucket() argument
4642 ret = ocfs2_xattr_bucket_journal_access(handle, s_bucket, in ocfs2_divide_xattr_bucket()
4664 ret = ocfs2_xattr_bucket_journal_access(handle, t_bucket, in ocfs2_divide_xattr_bucket()
4752 ocfs2_xattr_bucket_journal_dirty(handle, t_bucket); in ocfs2_divide_xattr_bucket()
4773 ocfs2_xattr_bucket_journal_dirty(handle, s_bucket); in ocfs2_divide_xattr_bucket()
4789 handle_t *handle, in ocfs2_cp_xattr_bucket() argument
4836 ret = ocfs2_xattr_bucket_journal_access(handle, t_bucket, in ocfs2_cp_xattr_bucket()
4844 ocfs2_xattr_bucket_journal_dirty(handle, t_bucket); in ocfs2_cp_xattr_bucket()
4862 static int ocfs2_mv_xattr_buckets(struct inode *inode, handle_t *handle, in ocfs2_mv_xattr_buckets() argument
4903 ret = ocfs2_extend_trans(handle, credits); in ocfs2_mv_xattr_buckets()
4909 ret = ocfs2_xattr_bucket_journal_access(handle, old_first, in ocfs2_mv_xattr_buckets()
4917 ret = ocfs2_cp_xattr_bucket(inode, handle, in ocfs2_mv_xattr_buckets()
4937 ret = ocfs2_xattr_bucket_journal_access(handle, new_first, in ocfs2_mv_xattr_buckets()
4946 ocfs2_xattr_bucket_journal_dirty(handle, old_first); in ocfs2_mv_xattr_buckets()
4949 ocfs2_xattr_bucket_journal_dirty(handle, new_first); in ocfs2_mv_xattr_buckets()
4966 handle_t *handle, in ocfs2_divide_xattr_cluster() argument
4976 ret = ocfs2_extend_trans(handle, credits); in ocfs2_divide_xattr_cluster()
4983 return ocfs2_divide_xattr_bucket(inode, handle, prev_blk, in ocfs2_divide_xattr_cluster()
5014 handle_t *handle, in ocfs2_adjust_xattr_cross_cluster() argument
5030 handle, in ocfs2_adjust_xattr_cross_cluster()
5044 ret = ocfs2_mv_xattr_buckets(inode, handle, in ocfs2_adjust_xattr_cross_cluster()
5051 ret = ocfs2_divide_xattr_cluster(inode, handle, in ocfs2_adjust_xattr_cross_cluster()
5095 handle_t *handle = ctxt->handle; in ocfs2_add_new_xattr_cluster() local
5106 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh, in ocfs2_add_new_xattr_cluster()
5113 ret = __ocfs2_claim_clusters(handle, ctxt->data_ac, 1, in ocfs2_add_new_xattr_cluster()
5142 handle, in ocfs2_add_new_xattr_cluster()
5157 ret = ocfs2_insert_extent(handle, &et, v_start, block, in ocfs2_add_new_xattr_cluster()
5164 ocfs2_journal_dirty(handle, root_bh); in ocfs2_add_new_xattr_cluster()
5180 handle_t *handle, in ocfs2_extend_xattr_bucket() argument
5210 ret = ocfs2_extend_trans(handle, credits); in ocfs2_extend_xattr_bucket()
5216 ret = ocfs2_xattr_bucket_journal_access(handle, first, in ocfs2_extend_xattr_bucket()
5224 ret = ocfs2_cp_xattr_bucket(inode, handle, end_blk, in ocfs2_extend_xattr_bucket()
5232 ret = ocfs2_divide_xattr_bucket(inode, handle, target_blk, in ocfs2_extend_xattr_bucket()
5236 ocfs2_xattr_bucket_journal_dirty(handle, first); in ocfs2_extend_xattr_bucket()
5319 ctxt->handle, in ocfs2_add_new_xattr_bucket()
5388 ret = ocfs2_xattr_bucket_journal_access(ctxt->handle, bucket, in ocfs2_xattr_bucket_value_truncate()
5397 ocfs2_xattr_bucket_journal_dirty(ctxt->handle, bucket); in ocfs2_xattr_bucket_value_truncate()
5413 handle_t *handle; in ocfs2_rm_xattr_cluster() local
5454 handle = ocfs2_start_trans(osb, ocfs2_remove_extent_credits(osb->sb)); in ocfs2_rm_xattr_cluster()
5455 if (IS_ERR(handle)) { in ocfs2_rm_xattr_cluster()
5461 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh, in ocfs2_rm_xattr_cluster()
5468 ret = ocfs2_remove_extent(handle, &et, cpos, len, meta_ac, in ocfs2_rm_xattr_cluster()
5476 ocfs2_journal_dirty(handle, root_bh); in ocfs2_rm_xattr_cluster()
5478 ret = ocfs2_truncate_log_append(osb, handle, blkno, len); in ocfs2_rm_xattr_cluster()
5481 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_rm_xattr_cluster()
5484 ocfs2_commit_trans(osb, handle); in ocfs2_rm_xattr_cluster()
5553 ret = ocfs2_defrag_xattr_bucket(inode, ctxt->handle, in ocfs2_xattr_set_entry_bucket()
5675 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_delete_xattr_in_bucket()
5676 if (IS_ERR(ctxt.handle)) { in ocfs2_delete_xattr_in_bucket()
5677 ret = PTR_ERR(ctxt.handle); in ocfs2_delete_xattr_in_bucket()
5685 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_delete_xattr_in_bucket()
5712 handle_t *handle, in ocfs2_xattr_bucket_post_refcount() argument
5719 ret = ocfs2_xattr_bucket_journal_access(handle, bucket, in ocfs2_xattr_bucket_post_refcount()
5726 ocfs2_xattr_bucket_journal_dirty(handle, bucket); in ocfs2_xattr_bucket_post_refcount()
6324 static int ocfs2_reflink_xattr_header(handle_t *handle, in ocfs2_reflink_xattr_header() argument
6420 ret = ocfs2_insert_extent(handle, in ocfs2_reflink_xattr_header()
6433 ret = ocfs2_increase_refcount(handle, args->ref_ci, in ocfs2_reflink_xattr_header()
6453 handle_t *handle; in ocfs2_reflink_xattr_inline() local
6477 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_inline()
6478 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_inline()
6479 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_inline()
6484 ret = ocfs2_journal_access_di(handle, INODE_CACHE(args->new_inode), in ocfs2_reflink_xattr_inline()
6497 ret = ocfs2_reflink_xattr_header(handle, args, args->old_bh, xh, in ocfs2_reflink_xattr_inline()
6521 ocfs2_journal_dirty(handle, args->new_bh); in ocfs2_reflink_xattr_inline()
6524 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_inline()
6548 ctxt.handle = ocfs2_start_trans(osb, OCFS2_XATTR_BLOCK_CREATE_CREDITS); in ocfs2_create_empty_xattr_block()
6549 if (IS_ERR(ctxt.handle)) { in ocfs2_create_empty_xattr_block()
6550 ret = PTR_ERR(ctxt.handle); in ocfs2_create_empty_xattr_block()
6562 ocfs2_commit_trans(osb, ctxt.handle); in ocfs2_create_empty_xattr_block()
6573 handle_t *handle; in ocfs2_reflink_xattr_block() local
6598 handle = ocfs2_start_trans(osb, credits + 1); in ocfs2_reflink_xattr_block()
6599 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_block()
6600 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_block()
6606 ret = ocfs2_journal_access_di(handle, in ocfs2_reflink_xattr_block()
6616 ret = ocfs2_journal_access_xb(handle, INODE_CACHE(args->new_inode), in ocfs2_reflink_xattr_block()
6626 ret = ocfs2_reflink_xattr_header(handle, args, blk_bh, xh, in ocfs2_reflink_xattr_block()
6634 ocfs2_journal_dirty(handle, new_blk_bh); in ocfs2_reflink_xattr_block()
6643 ocfs2_journal_dirty(handle, args->new_bh); in ocfs2_reflink_xattr_block()
6647 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_block()
6819 static int ocfs2_reflink_xattr_bucket(handle_t *handle, in ocfs2_reflink_xattr_bucket() argument
6846 ret = ocfs2_xattr_bucket_journal_access(handle, in ocfs2_reflink_xattr_bucket()
6871 ocfs2_xattr_bucket_journal_dirty(handle, args->new_bucket); in ocfs2_reflink_xattr_bucket()
6873 ret = ocfs2_reflink_xattr_header(handle, args->reflink, in ocfs2_reflink_xattr_bucket()
6891 ret = ocfs2_xattr_bucket_journal_access(handle, in ocfs2_reflink_xattr_bucket()
6899 ocfs2_xattr_bucket_journal_dirty(handle, args->new_bucket); in ocfs2_reflink_xattr_bucket()
6910 static int ocfs2_reflink_xattr_buckets(handle_t *handle, in ocfs2_reflink_xattr_buckets() argument
6934 ret = ocfs2_claim_clusters(handle, data_ac, in ocfs2_reflink_xattr_buckets()
6944 ret = ocfs2_reflink_xattr_bucket(handle, blkno, in ocfs2_reflink_xattr_buckets()
6962 ret = ocfs2_insert_extent(handle, et, reflink_cpos, new_blkno, in ocfs2_reflink_xattr_buckets()
6989 handle_t *handle; in ocfs2_reflink_xattr_rec() local
7011 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_rec()
7012 if (IS_ERR(handle)) { in ocfs2_reflink_xattr_rec()
7013 ret = PTR_ERR(handle); in ocfs2_reflink_xattr_rec()
7018 ret = ocfs2_reflink_xattr_buckets(handle, inode, args, &et, in ocfs2_reflink_xattr_rec()
7024 ocfs2_commit_trans(osb, handle); in ocfs2_reflink_xattr_rec()
7298 int ocfs2_init_security_set(handle_t *handle, in ocfs2_init_security_set() argument
7305 return ocfs2_xattr_set_handle(handle, inode, di_bh, in ocfs2_init_security_set()