Lines Matching refs:xbs

298 					struct ocfs2_xattr_search *xbs,
1293 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_get_nolock() local
1303 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock()
1310 buffer_size, &xbs); in ocfs2_xattr_get_nolock()
3039 struct ocfs2_xattr_search *xbs, in ocfs2_calc_xattr_set_need() argument
3065 if (xis->not_found && xbs->not_found) { in ocfs2_calc_xattr_set_need()
3085 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3086 xe = xbs->here; in ocfs2_calc_xattr_set_need()
3089 i = xbs->here - xbs->header->xh_entries; in ocfs2_calc_xattr_set_need()
3094 bucket_xh(xbs->bucket), in ocfs2_calc_xattr_set_need()
3097 base = bucket_block(xbs->bucket, block_off); in ocfs2_calc_xattr_set_need()
3100 base = xbs->base; in ocfs2_calc_xattr_set_need()
3182 if (!xbs->xattr_bh) { in ocfs2_calc_xattr_set_need()
3193 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3251 struct ocfs2_xattr_search *xbs, in ocfs2_init_xattr_set_ctxt() argument
3263 ret = ocfs2_calc_xattr_set_need(inode, di, xi, xis, xbs, in ocfs2_init_xattr_set_ctxt()
3307 struct ocfs2_xattr_search *xbs, in __ocfs2_xattr_set_handle() argument
3316 else if (!xbs->not_found) in __ocfs2_xattr_set_handle()
3317 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3321 if (!ret && !xbs->not_found) { in __ocfs2_xattr_set_handle()
3335 xbs, in __ocfs2_xattr_set_handle()
3350 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3352 if (di->i_xattr_loc && !xbs->xattr_bh) { in __ocfs2_xattr_set_handle()
3355 xi->xi_name, xbs); in __ocfs2_xattr_set_handle()
3365 xbs, in __ocfs2_xattr_set_handle()
3385 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt); in __ocfs2_xattr_set_handle()
3395 xbs->not_found = -ENODATA; in __ocfs2_xattr_set_handle()
3400 xbs, in __ocfs2_xattr_set_handle()
3470 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set_handle() local
3489 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set_handle()
3490 if (!xbs.bucket) { in ocfs2_xattr_set_handle()
3496 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set_handle()
3505 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set_handle()
3510 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set_handle()
3514 brelse(xbs.xattr_bh); in ocfs2_xattr_set_handle()
3515 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set_handle()
3555 struct ocfs2_xattr_search xbs = { in ocfs2_xattr_set() local
3566 xbs.bucket = ocfs2_xattr_bucket_new(inode); in ocfs2_xattr_set()
3567 if (!xbs.bucket) { in ocfs2_xattr_set()
3578 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_set()
3590 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); in ocfs2_xattr_set()
3595 if (xis.not_found && xbs.not_found) { in ocfs2_xattr_set()
3610 (!xis.not_found || !xbs.not_found)) { in ocfs2_xattr_set()
3612 &xis, &xbs, &ref_tree, in ocfs2_xattr_set()
3633 &xbs, &ctxt, ref_meta, &credits); in ocfs2_xattr_set()
3648 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt); in ocfs2_xattr_set()
3674 brelse(xbs.xattr_bh); in ocfs2_xattr_set()
3675 ocfs2_xattr_bucket_free(xbs.bucket); in ocfs2_xattr_set()
5763 struct ocfs2_xattr_search *xbs, in ocfs2_prepare_refcount_xattr() argument
5791 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5792 xe = xbs->here; in ocfs2_prepare_refcount_xattr()
5795 i = xbs->here - xbs->header->xh_entries; in ocfs2_prepare_refcount_xattr()
5799 bucket_xh(xbs->bucket), in ocfs2_prepare_refcount_xattr()
5806 base = bucket_block(xbs->bucket, block_off); in ocfs2_prepare_refcount_xattr()
5807 vb.vb_bh = xbs->bucket->bu_bhs[block_off]; in ocfs2_prepare_refcount_xattr()
5812 bucket = xbs->bucket; in ocfs2_prepare_refcount_xattr()
5820 base = xbs->base; in ocfs2_prepare_refcount_xattr()
5821 vb.vb_bh = xbs->xattr_bh; in ocfs2_prepare_refcount_xattr()