Lines Matching refs:xbs
292 struct ocfs2_xattr_search *xbs,
1287 struct ocfs2_xattr_search xbs = {
1297 xis.inode_bh = xbs.inode_bh = di_bh;
1304 buffer_size, &xbs);
3033 struct ocfs2_xattr_search *xbs,
3059 if (xis->not_found && xbs->not_found) {
3079 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data;
3080 xe = xbs->here;
3083 i = xbs->here - xbs->header->xh_entries;
3088 bucket_xh(xbs->bucket),
3091 base = bucket_block(xbs->bucket, block_off);
3094 base = xbs->base;
3176 if (!xbs->xattr_bh) {
3187 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data;
3245 struct ocfs2_xattr_search *xbs,
3257 ret = ocfs2_calc_xattr_set_need(inode, di, xi, xis, xbs,
3301 struct ocfs2_xattr_search *xbs,
3310 else if (!xbs->not_found)
3311 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt);
3315 if (!ret && !xbs->not_found) {
3329 xbs,
3344 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt);
3346 if (di->i_xattr_loc && !xbs->xattr_bh) {
3349 xi->xi_name, xbs);
3359 xbs,
3379 ret = ocfs2_xattr_block_set(inode, xi, xbs, ctxt);
3389 xbs->not_found = -ENODATA;
3394 xbs,
3464 struct ocfs2_xattr_search xbs = {
3483 xbs.bucket = ocfs2_xattr_bucket_new(inode);
3484 if (!xbs.bucket) {
3490 xis.inode_bh = xbs.inode_bh = di_bh;
3499 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs);
3504 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt);
3508 brelse(xbs.xattr_bh);
3509 ocfs2_xattr_bucket_free(xbs.bucket);
3549 struct ocfs2_xattr_search xbs = {
3557 * Only xbs will be used on indexed trees. xis doesn't need a
3560 xbs.bucket = ocfs2_xattr_bucket_new(inode);
3561 if (!xbs.bucket) {
3572 xis.inode_bh = xbs.inode_bh = di_bh;
3584 ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs);
3589 if (xis.not_found && xbs.not_found) {
3604 (!xis.not_found || !xbs.not_found)) {
3606 &xis, &xbs, &ref_tree,
3627 &xbs, &ctxt, ref_meta, &credits);
3642 ret = __ocfs2_xattr_set_handle(inode, di, &xi, &xis, &xbs, &ctxt);
3668 brelse(xbs.xattr_bh);
3669 ocfs2_xattr_bucket_free(xbs.bucket);
5757 struct ocfs2_xattr_search *xbs,
5785 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data;
5786 xe = xbs->here;
5789 i = xbs->here - xbs->header->xh_entries;
5793 bucket_xh(xbs->bucket),
5800 base = bucket_block(xbs->bucket, block_off);
5801 vb.vb_bh = xbs->bucket->bu_bhs[block_off];
5806 bucket = xbs->bucket;
5814 base = xbs->base;
5815 vb.vb_bh = xbs->xattr_bh;