Lines Matching refs:xbs
292 struct ocfs2_xattr_search *xbs,
1296 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_get_nolock() local
1306 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock()
1313 buffer_size, &xbs); in ocfs2_xattr_get_nolock()
3041 struct ocfs2_xattr_search *xbs, in ocfs2_calc_xattr_set_need() argument
3067 if (xis->not_found && xbs->not_found) { in ocfs2_calc_xattr_set_need()
3087 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3088 xe = xbs->here; in ocfs2_calc_xattr_set_need()
3091 i = xbs->here - xbs->header->xh_entries; in ocfs2_calc_xattr_set_need()
3096 bucket_xh(xbs->bucket), in ocfs2_calc_xattr_set_need()
3099 base = bucket_block(xbs->bucket, block_off); in ocfs2_calc_xattr_set_need()
3102 base = xbs->base; in ocfs2_calc_xattr_set_need()
3184 if (!xbs->xattr_bh) { in ocfs2_calc_xattr_set_need()
3195 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3253 struct ocfs2_xattr_search *xbs, in ocfs2_init_xattr_set_ctxt() argument
3265 ret = ocfs2_calc_xattr_set_need(inode, di, xi, xis, xbs, in ocfs2_init_xattr_set_ctxt()
3309 struct ocfs2_xattr_search *xbs, in __ocfs2_xattr_set_handle() argument
3318 else if (!xbs->not_found) in __ocfs2_xattr_set_handle()
3319 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3323 if (!ret && !xbs->not_found) { in __ocfs2_xattr_set_handle()
3337 xbs, in __ocfs2_xattr_set_handle()
3352 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3354 if (di->i_xattr_loc && !xbs->xattr_bh) { in __ocfs2_xattr_set_handle()
3357 xi->xi_name, xbs); in __ocfs2_xattr_set_handle()
3367 xbs, in __ocfs2_xattr_set_handle()
3387 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3397 xbs->not_found = -ENODATA; in __ocfs2_xattr_set_handle()
3402 xbs, in __ocfs2_xattr_set_handle()
3472 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set_handle() local
3491 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set_handle()
3492 if (!xbs.bucket) { in ocfs2_xattr_set_handle()
3498 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set_handle()
3507 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set_handle()
3512 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set_handle()
3516 brelse(xbs.xattr_bh); in ocfs2_xattr_set_handle()
3517 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set_handle()
3557 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set() local
3568 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set()
3569 if (!xbs.bucket) { in ocfs2_xattr_set()
3580 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set()
3592 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set()
3597 if (xis.not_found && xbs.not_found) { in ocfs2_xattr_set()
3612 (!xis.not_found || !xbs.not_found)) { in ocfs2_xattr_set()
3614 &xis, &xbs, &ref_tree, in ocfs2_xattr_set()
3635 &xbs, &ctxt, ref_meta, &credits); in ocfs2_xattr_set()
3650 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set()
3676 brelse(xbs.xattr_bh); in ocfs2_xattr_set()
3677 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set()
5756 struct ocfs2_xattr_search *xbs, in ocfs2_prepare_refcount_xattr() argument
5784 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5785 xe = xbs->here; in ocfs2_prepare_refcount_xattr()
5788 i = xbs->here - xbs->header->xh_entries; in ocfs2_prepare_refcount_xattr()
5792 bucket_xh(xbs->bucket), in ocfs2_prepare_refcount_xattr()
5799 base = bucket_block(xbs->bucket, block_off); in ocfs2_prepare_refcount_xattr()
5800 vb.vb_bh = xbs->bucket->bu_bhs[block_off]; in ocfs2_prepare_refcount_xattr()
5805 bucket = xbs->bucket; in ocfs2_prepare_refcount_xattr()
5813 base = xbs->base; in ocfs2_prepare_refcount_xattr()
5814 vb.vb_bh = xbs->xattr_bh; in ocfs2_prepare_refcount_xattr()