Lines Matching refs:bp

44 				    struct xfs_buf *bp, int first, int last);
46 struct xfs_buf *bp);
53 #define xfs_dir3_leaf_check(dp, bp) \ argument
55 if (!xfs_dir3_leaf1_check((dp), (bp))) \
62 struct xfs_buf *bp) in xfs_dir3_leaf1_check() argument
64 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf1_check()
70 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leaf1_check()
71 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leaf1_check()
79 #define xfs_dir3_leaf_check(dp, bp) argument
147 struct xfs_buf *bp, in xfs_dir3_leaf_verify() argument
150 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dir3_leaf_verify()
151 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_verify()
156 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leaf_verify()
166 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leaf_verify()
180 struct xfs_buf *bp, in __read_verify() argument
183 struct xfs_mount *mp = bp->b_target->bt_mount; in __read_verify()
186 !xfs_buf_verify_cksum(bp, XFS_DIR3_LEAF_CRC_OFF)) in __read_verify()
187 xfs_buf_ioerror(bp, -EFSBADCRC); in __read_verify()
188 else if (!xfs_dir3_leaf_verify(bp, magic)) in __read_verify()
189 xfs_buf_ioerror(bp, -EFSCORRUPTED); in __read_verify()
191 if (bp->b_error) in __read_verify()
192 xfs_verifier_error(bp); in __read_verify()
197 struct xfs_buf *bp, in __write_verify() argument
200 struct xfs_mount *mp = bp->b_target->bt_mount; in __write_verify()
201 struct xfs_buf_log_item *bip = bp->b_fspriv; in __write_verify()
202 struct xfs_dir3_leaf_hdr *hdr3 = bp->b_addr; in __write_verify()
204 if (!xfs_dir3_leaf_verify(bp, magic)) { in __write_verify()
205 xfs_buf_ioerror(bp, -EFSCORRUPTED); in __write_verify()
206 xfs_verifier_error(bp); in __write_verify()
216 xfs_buf_update_cksum(bp, XFS_DIR3_LEAF_CRC_OFF); in __write_verify()
221 struct xfs_buf *bp) in xfs_dir3_leaf1_read_verify() argument
223 __read_verify(bp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir3_leaf1_read_verify()
228 struct xfs_buf *bp) in xfs_dir3_leaf1_write_verify() argument
230 __write_verify(bp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir3_leaf1_write_verify()
235 struct xfs_buf *bp) in xfs_dir3_leafn_read_verify() argument
237 __read_verify(bp, XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leafn_read_verify()
242 struct xfs_buf *bp) in xfs_dir3_leafn_write_verify() argument
244 __write_verify(bp, XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leafn_write_verify()
300 struct xfs_buf *bp, in xfs_dir3_leaf_init() argument
304 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_init()
309 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leaf_init()
316 leaf3->info.blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_leaf_init()
333 bp->b_ops = &xfs_dir3_leaf1_buf_ops; in xfs_dir3_leaf_init()
334 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir3_leaf_init()
336 bp->b_ops = &xfs_dir3_leafn_buf_ops; in xfs_dir3_leaf_init()
337 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DIR_LEAFN_BUF); in xfs_dir3_leaf_init()
351 struct xfs_buf *bp; in xfs_dir3_leaf_get_buf() local
359 -1, &bp, XFS_DATA_FORK); in xfs_dir3_leaf_get_buf()
363 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); in xfs_dir3_leaf_get_buf()
364 xfs_dir3_leaf_log_header(args, bp); in xfs_dir3_leaf_get_buf()
366 xfs_dir3_leaf_log_tail(args, bp); in xfs_dir3_leaf_get_buf()
367 *bpp = bp; in xfs_dir3_leaf_get_buf()
916 struct xfs_buf *bp) /* leaf buffer */ in xfs_dir3_leaf_compact() argument
925 leaf = bp->b_addr; in xfs_dir3_leaf_compact()
954 xfs_dir3_leaf_log_header(args, bp); in xfs_dir3_leaf_compact()
956 xfs_dir3_leaf_log_ents(args, bp, loglow, to - 1); in xfs_dir3_leaf_compact()
1059 struct xfs_buf *bp, /* leaf buffer */ in xfs_dir3_leaf_log_bests() argument
1065 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_bests()
1074 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_bests()
1085 struct xfs_buf *bp, in xfs_dir3_leaf_log_ents() argument
1091 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_ents()
1102 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_ents()
1113 struct xfs_buf *bp) in xfs_dir3_leaf_log_header() argument
1115 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_header()
1122 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_header()
1133 struct xfs_buf *bp) in xfs_dir3_leaf_log_tail() argument
1135 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_tail()
1144 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir3_leaf_log_tail()
1742 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1822 state->path.blk[0].bp = NULL; in xfs_dir2_node_to_leaf()