Lines Matching refs:bp
43 struct xfs_buf *bp, int first, int last);
45 struct xfs_buf *bp);
52 #define xfs_dir3_leaf_check(dp, bp) \ argument
54 if (!xfs_dir3_leaf1_check((dp), (bp))) \
61 struct xfs_buf *bp) in xfs_dir3_leaf1_check() argument
63 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf1_check()
69 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leaf1_check()
70 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leaf1_check()
78 #define xfs_dir3_leaf_check(dp, bp) argument
146 struct xfs_buf *bp, in xfs_dir3_leaf_verify() argument
149 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dir3_leaf_verify()
150 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_verify()
155 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leaf_verify()
165 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leaf_verify()
177 struct xfs_buf *bp, in __read_verify() argument
180 struct xfs_mount *mp = bp->b_target->bt_mount; in __read_verify()
183 !xfs_buf_verify_cksum(bp, XFS_DIR3_LEAF_CRC_OFF)) in __read_verify()
184 xfs_buf_ioerror(bp, -EFSBADCRC); in __read_verify()
185 else if (!xfs_dir3_leaf_verify(bp, magic)) in __read_verify()
186 xfs_buf_ioerror(bp, -EFSCORRUPTED); in __read_verify()
188 if (bp->b_error) in __read_verify()
189 xfs_verifier_error(bp); in __read_verify()
194 struct xfs_buf *bp, in __write_verify() argument
197 struct xfs_mount *mp = bp->b_target->bt_mount; in __write_verify()
198 struct xfs_buf_log_item *bip = bp->b_fspriv; in __write_verify()
199 struct xfs_dir3_leaf_hdr *hdr3 = bp->b_addr; in __write_verify()
201 if (!xfs_dir3_leaf_verify(bp, magic)) { in __write_verify()
202 xfs_buf_ioerror(bp, -EFSCORRUPTED); in __write_verify()
203 xfs_verifier_error(bp); in __write_verify()
213 xfs_buf_update_cksum(bp, XFS_DIR3_LEAF_CRC_OFF); in __write_verify()
218 struct xfs_buf *bp) in xfs_dir3_leaf1_read_verify() argument
220 __read_verify(bp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir3_leaf1_read_verify()
225 struct xfs_buf *bp) in xfs_dir3_leaf1_write_verify() argument
227 __write_verify(bp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir3_leaf1_write_verify()
232 struct xfs_buf *bp) in xfs_dir3_leafn_read_verify() argument
234 __read_verify(bp, XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leafn_read_verify()
239 struct xfs_buf *bp) in xfs_dir3_leafn_write_verify() argument
241 __write_verify(bp, XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leafn_write_verify()
295 struct xfs_buf *bp, in xfs_dir3_leaf_init() argument
299 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_init()
304 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leaf_init()
311 leaf3->info.blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_leaf_init()
328 bp->b_ops = &xfs_dir3_leaf1_buf_ops; in xfs_dir3_leaf_init()
329 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir3_leaf_init()
331 bp->b_ops = &xfs_dir3_leafn_buf_ops; in xfs_dir3_leaf_init()
332 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DIR_LEAFN_BUF); in xfs_dir3_leaf_init()
346 struct xfs_buf *bp; in xfs_dir3_leaf_get_buf() local
354 -1, &bp, XFS_DATA_FORK); in xfs_dir3_leaf_get_buf()
358 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); in xfs_dir3_leaf_get_buf()
359 xfs_dir3_leaf_log_header(args, bp); in xfs_dir3_leaf_get_buf()
361 xfs_dir3_leaf_log_tail(args, bp); in xfs_dir3_leaf_get_buf()
362 *bpp = bp; in xfs_dir3_leaf_get_buf()
911 struct xfs_buf *bp) /* leaf buffer */ in xfs_dir3_leaf_compact() argument
920 leaf = bp->b_addr; in xfs_dir3_leaf_compact()
949 xfs_dir3_leaf_log_header(args, bp); in xfs_dir3_leaf_compact()
951 xfs_dir3_leaf_log_ents(args, bp, loglow, to - 1); in xfs_dir3_leaf_compact()
1054 struct xfs_buf *bp, /* leaf buffer */ in xfs_dir3_leaf_log_bests() argument
1060 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_bests()
1069 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_bests()
1080 struct xfs_buf *bp, in xfs_dir3_leaf_log_ents() argument
1086 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_ents()
1097 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_ents()
1108 struct xfs_buf *bp) in xfs_dir3_leaf_log_header() argument
1110 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_header()
1117 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_header()
1128 struct xfs_buf *bp) in xfs_dir3_leaf_log_tail() argument
1130 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_tail()
1139 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir3_leaf_log_tail()
1737 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1817 state->path.blk[0].bp = NULL; in xfs_dir2_node_to_leaf()