Lines Matching refs:xbs

306 					struct ocfs2_xattr_search *xbs,
1301 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_get_nolock() local
1311 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock()
1318 buffer_size, &xbs); in ocfs2_xattr_get_nolock()
3047 struct ocfs2_xattr_search *xbs, in ocfs2_calc_xattr_set_need() argument
3073 if (xis->not_found && xbs->not_found) { in ocfs2_calc_xattr_set_need()
3093 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3094 xe = xbs->here; in ocfs2_calc_xattr_set_need()
3097 i = xbs->here - xbs->header->xh_entries; in ocfs2_calc_xattr_set_need()
3102 bucket_xh(xbs->bucket), in ocfs2_calc_xattr_set_need()
3105 base = bucket_block(xbs->bucket, block_off); in ocfs2_calc_xattr_set_need()
3108 base = xbs->base; in ocfs2_calc_xattr_set_need()
3190 if (!xbs->xattr_bh) { in ocfs2_calc_xattr_set_need()
3201 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3259 struct ocfs2_xattr_search *xbs, in ocfs2_init_xattr_set_ctxt() argument
3271 ret = ocfs2_calc_xattr_set_need(inode, di, xi, xis, xbs, in ocfs2_init_xattr_set_ctxt()
3315 struct ocfs2_xattr_search *xbs, in __ocfs2_xattr_set_handle() argument
3324 else if (!xbs->not_found) in __ocfs2_xattr_set_handle()
3325 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3329 if (!ret && !xbs->not_found) { in __ocfs2_xattr_set_handle()
3343 xbs, in __ocfs2_xattr_set_handle()
3358 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3360 if (di->i_xattr_loc && !xbs->xattr_bh) { in __ocfs2_xattr_set_handle()
3363 xi->xi_name, xbs); in __ocfs2_xattr_set_handle()
3373 xbs, in __ocfs2_xattr_set_handle()
3393 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3403 xbs->not_found = -ENODATA; in __ocfs2_xattr_set_handle()
3408 xbs, in __ocfs2_xattr_set_handle()
3478 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set_handle() local
3497 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set_handle()
3498 if (!xbs.bucket) { in ocfs2_xattr_set_handle()
3504 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set_handle()
3513 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set_handle()
3518 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set_handle()
3522 brelse(xbs.xattr_bh); in ocfs2_xattr_set_handle()
3523 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set_handle()
3563 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set() local
3574 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set()
3575 if (!xbs.bucket) { in ocfs2_xattr_set()
3586 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set()
3598 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set()
3603 if (xis.not_found && xbs.not_found) { in ocfs2_xattr_set()
3618 (!xis.not_found || !xbs.not_found)) { in ocfs2_xattr_set()
3620 &xis, &xbs, &ref_tree, in ocfs2_xattr_set()
3641 &xbs, &ctxt, ref_meta, &credits); in ocfs2_xattr_set()
3656 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set()
3682 brelse(xbs.xattr_bh); in ocfs2_xattr_set()
3683 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set()
5771 struct ocfs2_xattr_search *xbs, in ocfs2_prepare_refcount_xattr() argument
5799 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5800 xe = xbs->here; in ocfs2_prepare_refcount_xattr()
5803 i = xbs->here - xbs->header->xh_entries; in ocfs2_prepare_refcount_xattr()
5807 bucket_xh(xbs->bucket), in ocfs2_prepare_refcount_xattr()
5814 base = bucket_block(xbs->bucket, block_off); in ocfs2_prepare_refcount_xattr()
5815 vb.vb_bh = xbs->bucket->bu_bhs[block_off]; in ocfs2_prepare_refcount_xattr()
5820 bucket = xbs->bucket; in ocfs2_prepare_refcount_xattr()
5828 base = xbs->base; in ocfs2_prepare_refcount_xattr()
5829 vb.vb_bh = xbs->xattr_bh; in ocfs2_prepare_refcount_xattr()