Lines Matching refs:xbs
296 struct ocfs2_xattr_search *xbs,
1291 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_get_nolock() local
1301 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock()
1308 buffer_size, &xbs); in ocfs2_xattr_get_nolock()
3037 struct ocfs2_xattr_search *xbs, in ocfs2_calc_xattr_set_need() argument
3063 if (xis->not_found && xbs->not_found) { in ocfs2_calc_xattr_set_need()
3083 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3084 xe = xbs->here; in ocfs2_calc_xattr_set_need()
3087 i = xbs->here - xbs->header->xh_entries; in ocfs2_calc_xattr_set_need()
3092 bucket_xh(xbs->bucket), in ocfs2_calc_xattr_set_need()
3095 base = bucket_block(xbs->bucket, block_off); in ocfs2_calc_xattr_set_need()
3098 base = xbs->base; in ocfs2_calc_xattr_set_need()
3180 if (!xbs->xattr_bh) { in ocfs2_calc_xattr_set_need()
3191 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3249 struct ocfs2_xattr_search *xbs, in ocfs2_init_xattr_set_ctxt() argument
3261 ret = ocfs2_calc_xattr_set_need(inode, di, xi, xis, xbs, in ocfs2_init_xattr_set_ctxt()
3305 struct ocfs2_xattr_search *xbs, in __ocfs2_xattr_set_handle() argument
3314 else if (!xbs->not_found) in __ocfs2_xattr_set_handle()
3315 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3319 if (!ret && !xbs->not_found) { in __ocfs2_xattr_set_handle()
3333 xbs, in __ocfs2_xattr_set_handle()
3348 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3350 if (di->i_xattr_loc && !xbs->xattr_bh) { in __ocfs2_xattr_set_handle()
3353 xi->xi_name, xbs); in __ocfs2_xattr_set_handle()
3363 xbs, in __ocfs2_xattr_set_handle()
3383 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3393 xbs->not_found = -ENODATA; in __ocfs2_xattr_set_handle()
3398 xbs, in __ocfs2_xattr_set_handle()
3468 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set_handle() local
3487 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set_handle()
3488 if (!xbs.bucket) { in ocfs2_xattr_set_handle()
3494 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set_handle()
3503 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set_handle()
3508 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set_handle()
3512 brelse(xbs.xattr_bh); in ocfs2_xattr_set_handle()
3513 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set_handle()
3553 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set() local
3564 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set()
3565 if (!xbs.bucket) { in ocfs2_xattr_set()
3576 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set()
3588 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set()
3593 if (xis.not_found && xbs.not_found) { in ocfs2_xattr_set()
3608 (!xis.not_found || !xbs.not_found)) { in ocfs2_xattr_set()
3610 &xis, &xbs, &ref_tree, in ocfs2_xattr_set()
3631 &xbs, &ctxt, ref_meta, &credits); in ocfs2_xattr_set()
3646 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set()
3672 brelse(xbs.xattr_bh); in ocfs2_xattr_set()
3673 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set()
5761 struct ocfs2_xattr_search *xbs, in ocfs2_prepare_refcount_xattr() argument
5789 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5790 xe = xbs->here; in ocfs2_prepare_refcount_xattr()
5793 i = xbs->here - xbs->header->xh_entries; in ocfs2_prepare_refcount_xattr()
5797 bucket_xh(xbs->bucket), in ocfs2_prepare_refcount_xattr()
5804 base = bucket_block(xbs->bucket, block_off); in ocfs2_prepare_refcount_xattr()
5805 vb.vb_bh = xbs->bucket->bu_bhs[block_off]; in ocfs2_prepare_refcount_xattr()
5810 bucket = xbs->bucket; in ocfs2_prepare_refcount_xattr()
5818 base = xbs->base; in ocfs2_prepare_refcount_xattr()
5819 vb.vb_bh = xbs->xattr_bh; in ocfs2_prepare_refcount_xattr()