Lines Matching refs:curbp
631 struct xfs_buf *curbp = NULL; /* current data/free buffer */ in xfs_dir2_leafn_lookup_for_addname() local
666 curbp = state->extrablk.bp; in xfs_dir2_leafn_lookup_for_addname()
668 free = curbp->b_addr; in xfs_dir2_leafn_lookup_for_addname()
713 if (curbp) in xfs_dir2_leafn_lookup_for_addname()
714 xfs_trans_brelse(tp, curbp); in xfs_dir2_leafn_lookup_for_addname()
719 &curbp); in xfs_dir2_leafn_lookup_for_addname()
722 free = curbp->b_addr; in xfs_dir2_leafn_lookup_for_addname()
724 xfs_dir2_free_hdr_check(dp, curbp, curdb); in xfs_dir2_leafn_lookup_for_addname()
738 xfs_trans_brelse(tp, curbp); in xfs_dir2_leafn_lookup_for_addname()
750 if (curbp) { in xfs_dir2_leafn_lookup_for_addname()
753 state->extrablk.bp = curbp; in xfs_dir2_leafn_lookup_for_addname()
784 struct xfs_buf *curbp = NULL; /* current data/free buffer */ in xfs_dir2_leafn_lookup_for_entry() local
818 curbp = state->extrablk.bp; in xfs_dir2_leafn_lookup_for_entry()
848 if (curbp && (args->cmpresult == XFS_CMP_DIFFERENT || in xfs_dir2_leafn_lookup_for_entry()
850 xfs_trans_brelse(tp, curbp); in xfs_dir2_leafn_lookup_for_entry()
858 curbp = state->extrablk.bp; in xfs_dir2_leafn_lookup_for_entry()
863 0, &curbp); in xfs_dir2_leafn_lookup_for_entry()
867 xfs_dir3_data_check(dp, curbp); in xfs_dir2_leafn_lookup_for_entry()
873 dep = (xfs_dir2_data_entry_t *)((char *)curbp->b_addr + in xfs_dir2_leafn_lookup_for_entry()
892 state->extrablk.bp = curbp; in xfs_dir2_leafn_lookup_for_entry()
895 (char *)curbp->b_addr); in xfs_dir2_leafn_lookup_for_entry()
897 curbp->b_ops = &xfs_dir3_data_buf_ops; in xfs_dir2_leafn_lookup_for_entry()
898 xfs_trans_buf_set_type(tp, curbp, XFS_BLFT_DIR_DATA_BUF); in xfs_dir2_leafn_lookup_for_entry()
904 if (curbp) { in xfs_dir2_leafn_lookup_for_entry()
908 state->extrablk.bp = curbp; in xfs_dir2_leafn_lookup_for_entry()
912 curbp->b_ops = &xfs_dir3_data_buf_ops; in xfs_dir2_leafn_lookup_for_entry()
913 xfs_trans_buf_set_type(tp, curbp, XFS_BLFT_DIR_DATA_BUF); in xfs_dir2_leafn_lookup_for_entry()
916 if (state->extrablk.bp != curbp) in xfs_dir2_leafn_lookup_for_entry()
917 xfs_trans_brelse(tp, curbp); in xfs_dir2_leafn_lookup_for_entry()