| /fs/xfs/ |
| A D | xfs_buf.c | 97 if (bp->b_maps != &bp->__b_map) in xfs_buf_free_callback() 296 bp->b_maps = &bp->__b_map; in xfs_buf_alloc() 469 if (!bp || !xfs_buf_try_hold(bp)) { in xfs_buf_lookup() 520 if (bp && xfs_buf_try_hold(bp)) { in xfs_buf_find_insert() 678 bp->b_ops->verify_read(bp); in xfs_buf_reverify() 1125 bp->b_last_error = bp->b_error; in xfs_buf_ioend_handle_error() 1176 if (!bp->b_error && bp->b_ops) in __xfs_buf_ioend() 1177 bp->b_ops->verify_read(bp); in __xfs_buf_ioend() 1205 bp->b_iodone(bp); in __xfs_buf_ioend() 1255 bp->b_length, -bp->b_error); in xfs_buf_ioerror_alert() [all …]
|
| A D | xfs_trans_buf.c | 63 struct xfs_buf *bp, in _xfs_trans_bjoin() argument 93 bp->b_transp = tp; in _xfs_trans_bjoin() 139 if (bp != NULL) { in xfs_trans_get_buf_map() 152 *bpp = bp; in xfs_trans_get_buf_map() 164 *bpp = bp; in xfs_trans_get_buf_map() 189 xfs_buf_lock(bp); in __xfs_trans_getsb() 190 xfs_buf_hold(bp); in __xfs_trans_getsb() 196 return bp; in __xfs_trans_getsb() 251 if (bp) { in xfs_trans_read_buf_map() 300 *bpp = bp; in xfs_trans_read_buf_map() [all …]
|
| A D | xfs_buf_item.c | 85 bp->b_log_item = NULL; in xfs_buf_item_relse() 86 xfs_buf_rele(bp); in xfs_buf_item_relse() 527 xfs_buf_rele(bp); in xfs_buf_item_unpin() 541 xfs_buf_rele(bp); in xfs_buf_item_unpin() 556 xfs_buf_lock(bp); in xfs_buf_item_unpin() 567 xfs_buf_rele(bp); in xfs_buf_item_unpin() 819 if (!bp->b_ops || !bp->b_ops->verify_struct) in xfs_buf_item_precommit() 824 fa = bp->b_ops->verify_struct(bp); in xfs_buf_item_precommit() 826 xfs_buf_verifier_error(bp, -EFSCORRUPTED, bp->b_ops->name, in xfs_buf_item_precommit() 827 bp->b_addr, BBTOB(bp->b_length), fa); in xfs_buf_item_precommit() [all …]
|
| A D | xfs_buf.h | 289 #define xfs_buf_islocked(bp) \ argument 290 ((bp)->b_sema.count <= 0) 294 xfs_buf_unlock(bp); in xfs_buf_relse() 295 xfs_buf_rele(bp); in xfs_buf_relse() 303 #define xfs_buf_ioerror(bp, err) __xfs_buf_ioerror((bp), (err), __this_address) argument 307 #define xfs_buf_mark_corrupt(bp) __xfs_buf_mark_corrupt((bp), __this_address) argument 312 return bp->b_addr + offset; in xfs_buf_offset() 331 return bp->b_maps[0].bm_bn; in xfs_buf_daddr() 343 if (!list_empty(&bp->b_lru) || atomic_read(&bp->b_lru_ref) > 1) in xfs_buf_oneshot() 356 return xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length), in xfs_buf_verify_cksum() [all …]
|
| A D | xfs_buf_item_recover.c | 218 struct xfs_buf *bp, in xlog_recover_validate_buf_type() argument 448 if (bp->b_ops) { in xlog_recover_validate_buf_type() 468 struct xfs_buf *bp, in xlog_recover_do_reg_buffer() argument 563 struct xfs_buf *bp, in xlog_recover_do_dquot_buffer() argument 687 item, bp); in xlog_recover_do_inode_buffer() 814 struct xfs_buf *bp, in xlog_recover_get_buf_lsn() argument 1028 0, &bp, NULL); in xlog_recover_buf_commit_pass2() 1061 if (bp->b_ops) { in xlog_recover_buf_commit_pass2() 1062 bp->b_ops->verify_read(bp); in xlog_recover_buf_commit_pass2() 1128 xfs_buf_stale(bp); in xlog_recover_buf_commit_pass2() [all …]
|
| A D | xfs_buf_mem.c | 133 struct xfs_buf *bp) in xmbuf_map_backing_mem() argument 142 if (bp->b_map_count != 1) in xmbuf_map_backing_mem() 188 struct xfs_buf *bp) in xmbuf_stale() argument 195 pos = BBTOB(xfs_buf_daddr(bp)); in xmbuf_stale() 205 struct xfs_buf *bp) in xmbuf_finalize() argument 210 if (bp->b_flags & XBF_STALE) { in xmbuf_finalize() 211 xmbuf_stale(bp); in xmbuf_finalize() 219 fa = bp->b_ops->verify_struct(bp); in xmbuf_finalize() 235 struct xfs_buf *bp) in xmbuf_trans_bdetach() argument 245 while (bp->b_log_item != NULL) in xmbuf_trans_bdetach() [all …]
|
| A D | xfs_attr_list.c | 299 *pbp = bp; in xfs_attr_node_list_lookup() 333 bp = NULL; in xfs_attr_node_list() 343 if (!bp) in xfs_attr_node_list() 357 bp = NULL; in xfs_attr_node_list() 367 bp = NULL; in xfs_attr_node_list() 377 bp = NULL; in xfs_attr_node_list() 382 bp = NULL; in xfs_attr_node_list() 388 bp = NULL; in xfs_attr_node_list() 397 if (bp == NULL) { in xfs_attr_node_list() 400 if (error || !bp) in xfs_attr_node_list() [all …]
|
| A D | xfs_attr_inactive.c | 86 struct xfs_buf *bp) in xfs_attr3_leaf_inactive() argument 121 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive() 134 struct xfs_buf *bp, in xfs_attr3_node_inactive() argument 149 xfs_buf_mark_corrupt(bp); in xfs_attr3_node_inactive() 163 bp = NULL; in xfs_attr3_node_inactive() 233 bp->b_addr); in xfs_attr3_node_inactive() 236 bp = NULL; in xfs_attr3_node_inactive() 262 struct xfs_buf *bp; in xfs_attr3_root_inactive() local 275 blkno = xfs_buf_daddr(bp); in xfs_attr3_root_inactive() 281 info = bp->b_addr; in xfs_attr3_root_inactive() [all …]
|
| A D | xfs_dquot.c | 89 if (bp) { in xfs_dquot_detach_buf() 90 xfs_buf_lock(bp); in xfs_dquot_detach_buf() 92 xfs_buf_relse(bp); in xfs_dquot_detach_buf() 261 d = bp->b_addr; in xfs_qm_init_dquot_blk() 442 *bpp = bp; in xfs_dquot_disk_alloc() 514 *bpp = bp; in xfs_dquot_disk_read() 1211 if (bp) in xfs_qm_dqflush_done() 1294 *bpp = bp; in xfs_dquot_read_buf() 1364 if (!bp) { in xfs_dquot_use_attached_buf() 1374 xfs_buf_hold(bp); in xfs_dquot_use_attached_buf() [all …]
|
| /fs/afs/ |
| A D | fsclient.c | 561 bp = (void *) bp + namesz; in afs_fs_create_file() 564 bp = (void *) bp + padsz; in afs_fs_create_file() 615 bp = (void *) bp + namesz; in afs_fs_make_dir() 618 bp = (void *) bp + padsz; in afs_fs_make_dir() 695 bp = (void *) bp + namesz; in afs_fs_remove_file() 698 bp = (void *) bp + padsz; in afs_fs_remove_file() 743 bp = (void *) bp + namesz; in afs_fs_remove_dir() 746 bp = (void *) bp + padsz; in afs_fs_remove_dir() 821 bp = (void *) bp + namesz; in afs_fs_link() 824 bp = (void *) bp + padsz; in afs_fs_link() [all …]
|
| A D | yfsclient.c | 63 bp = xdr_encode_u32(bp, len); in xdr_encode_string() 64 bp = memcpy(bp, p, len); in xdr_encode_string() 580 bp = xdr_encode_name(bp, name); in yfs_fs_create_file() 627 bp = xdr_encode_u32(bp, YFSMAKEDIR); in yfs_fs_make_dir() 630 bp = xdr_encode_name(bp, name); in yfs_fs_make_dir() 717 bp = xdr_encode_name(bp, name); in yfs_fs_remove_file2() 787 bp = xdr_encode_name(bp, name); in yfs_fs_remove_file() 829 bp = xdr_encode_name(bp, name); in yfs_fs_remove_dir() 899 bp = xdr_encode_u32(bp, YFSLINK); in yfs_fs_link() 902 bp = xdr_encode_name(bp, name); in yfs_fs_link() [all …]
|
| A D | vlclient.c | 118 __be32 *bp; in afs_vl_get_entry_by_name_u() local 176 __be32 *bp; in afs_deliver_vl_get_addrs_u() local 266 __be32 *bp; in afs_vl_get_addrs_u() local 393 __be32 *bp; in afs_vl_get_capabilities() local 434 __be32 *bp; in afs_deliver_yfsvl_get_endpoints() local 504 bp += 3; in afs_deliver_yfsvl_get_endpoints() 513 bp += 6; in afs_deliver_yfsvl_get_endpoints() 581 bp += 3; in afs_deliver_yfsvl_get_endpoints() 587 bp += 6; in afs_deliver_yfsvl_get_endpoints() 640 __be32 *bp; in afs_yfsvl_get_endpoints() local [all …]
|
| /fs/jfs/ |
| A D | jfs_logmgr.c | 410 bp = log->bp; in lmWriteRecord() 510 tblk->bp = log->bp; in lmWriteRecord() 563 bp = log->bp; in lmNextPage() 614 bp->l_ceor = bp->l_eor; in lmNextPage() 775 bp->l_ceor = bp->l_eor; in lmGCwrite() 1284 log->bp = bp; in lmLogInit() 1344 log->bp = bp; in lmLogInit() 1368 bp = log->bp; in lmLogInit() 1656 bp = log->bp; in lmLogShutdown() 2043 bp->l_wqnext = bp; in lbmWrite() [all …]
|
| /fs/xfs/libxfs/ |
| A D | xfs_symlink_remote.c | 44 struct xfs_buf *bp) in xfs_symlink_hdr_set() argument 73 struct xfs_buf *bp) in xfs_symlink_hdr_ok() argument 90 struct xfs_buf *bp) in xfs_symlink_verify() argument 118 struct xfs_buf *bp) in xfs_symlink_read_verify() argument 138 struct xfs_buf *bp) in xfs_symlink_write_verify() argument 172 struct xfs_buf *bp, in xfs_symlink_local_to_remote() argument 183 bp->b_ops = NULL; in xfs_symlink_local_to_remote() 198 buf = bp->b_addr; in xfs_symlink_local_to_remote() 300 xfs_buf_relse(bp); in xfs_symlink_remote_read() 370 buf = bp->b_addr; in xfs_symlink_write_target() [all …]
|
| A D | xfs_da_btree.c | 231 fa = xfs_da3_blkinfo_verify(bp, bp->b_addr); in xfs_da3_node_verify() 353 bp->b_ops->verify_read(bp); in xfs_da3_node_read_verify() 358 bp->b_ops->verify_read(bp); in xfs_da3_node_read_verify() 380 return bp->b_ops->verify_struct(bp); in xfs_da3_node_verify_struct() 384 return bp->b_ops->verify_struct(bp); in xfs_da3_node_verify_struct() 545 *bpp = bp; in xfs_da3_node_create() 783 xfs_da_buf_copy(bp, blk1->bp, size); in xfs_da3_root_split() 789 blk1->bp = bp; in xfs_da3_root_split() 2172 blk->bp = bp; in xfs_da3_path_shift() 2799 *bpp = bp; in xfs_da_get_buf() [all …]
|
| A D | xfs_dir2_block.c | 49 struct xfs_buf *bp) in xfs_dir3_block_verify() argument 70 struct xfs_buf *bp) in xfs_dir3_block_read_verify() argument 87 struct xfs_buf *bp) in xfs_dir3_block_write_verify() argument 120 struct xfs_buf *bp, in xfs_dir3_block_header_check() argument 171 struct xfs_buf *bp) in xfs_dir3_block_init() argument 399 hdr = bp->b_addr; in xfs_dir2_block_addname() 658 hdr = bp->b_addr; in xfs_dir2_block_lookup() 709 hdr = bp->b_addr; in xfs_dir2_block_lookup_int() 758 *bpp = bp; in xfs_dir2_block_lookup_int() 813 hdr = bp->b_addr; in xfs_dir2_block_removename() [all …]
|
| A D | xfs_dir2_node.c | 63 struct xfs_buf *bp) in xfs_dir3_leafn_check() argument 83 struct xfs_buf *bp) in xfs_dir3_leaf_check() argument 91 bp->b_addr, BBTOB(bp->b_length), __FILE__, __LINE__, in xfs_dir3_leaf_check() 101 struct xfs_buf *bp) in xfs_dir3_free_verify() argument 127 struct xfs_buf *bp) in xfs_dir3_free_read_verify() argument 144 struct xfs_buf *bp) in xfs_dir3_free_write_verify() argument 361 *bpp = bp; in xfs_dir3_free_get_buf() 1097 swap_blocks = xfs_dir2_leafn_order(dp, blk1->bp, blk2->bp); in xfs_dir2_leafn_rebalance() 1329 dbp = dblk->bp; in xfs_dir2_leafn_remove() 1663 if (xfs_dir2_leafn_order(dp, save_blk->bp, drop_blk->bp)) in xfs_dir2_leafn_unbalance() [all …]
|
| A D | xfs_dir2_data.c | 127 hdr = bp->b_addr; in __xfs_dir3_data_check() 298 struct xfs_buf *bp) in xfs_dir3_data_check() argument 306 bp->b_addr, BBTOB(bp->b_length), __FILE__, __LINE__, in xfs_dir3_data_check() 348 bp->b_ops->verify_read(bp); in xfs_dir3_data_reada_verify() 353 bp->b_ops->verify_read(bp); in xfs_dir3_data_reada_verify() 363 struct xfs_buf *bp) in xfs_dir3_data_read_verify() argument 380 struct xfs_buf *bp) in xfs_dir3_data_write_verify() argument 746 hdr = bp->b_addr; in xfs_dir3_data_init() 780 *bpp = bp; in xfs_dir3_data_init() 879 hdr = bp->b_addr; in xfs_dir2_data_make_free() [all …]
|
| A D | xfs_attr_remote.c | 106 struct xfs_buf *bp, in xfs_attr3_rmt_verify() argument 131 struct xfs_buf *bp, in __xfs_attr3_rmt_read_verify() argument 145 ptr = bp->b_addr; in __xfs_attr3_rmt_read_verify() 174 struct xfs_buf *bp) in xfs_attr3_rmt_read_verify() argument 186 struct xfs_buf *bp) in xfs_attr3_rmt_verify_struct() argument 197 struct xfs_buf *bp) in xfs_attr3_rmt_write_verify() argument 210 ptr = bp->b_addr; in xfs_attr3_rmt_write_verify() 343 struct xfs_buf *bp, in xfs_attr_rmtval_copyin() argument 540 xfs_buf_relse(bp); in xfs_attr_rmtval_set_value() 582 xfs_buf_stale(bp); in xfs_attr_rmtval_stale() [all …]
|
| A D | xfs_btree_mem.c | 90 struct xfs_buf *bp; in xfbtree_init_leaf_block() local 95 &bp); in xfbtree_init_leaf_block() 103 xfs_buf_relse(bp); in xfbtree_init_leaf_block() 191 struct xfs_buf *bp) in xfbtree_free_block() argument 236 struct xfs_buf *bp; in xfbtree_buf_match() local 242 bp = bli->bli_buf; in xfbtree_buf_match() 246 return bp; in xfbtree_buf_match() 282 if (!bp) { in xfbtree_trans_commit() 300 xfs_buf_relse(bp); in xfbtree_trans_commit() 328 if (!bp) { in xfbtree_trans_cancel() [all …]
|
| A D | xfs_btree.c | 177 if (!bp) { in __xfs_btree_check_fsblock() 310 if (bp) in xfs_btree_check_block() 598 bp = cur->bc_levels[i].bp; in xfs_btree_dup_cursor() 599 if (bp) { in xfs_btree_dup_cursor() 613 new->bc_levels[i].bp = bp; in xfs_btree_dup_cursor() 1136 cur->bc_levels[lev].bp = bp; in xfs_btree_setbuf() 1525 if (bp) { in xfs_btree_log_keys() 1569 if (bp) { in xfs_btree_log_ptrs() 1898 bp = cur->bc_levels[level].bp; in xfs_btree_lookup_get_block() 1902 if (bp && xfs_buf_daddr(bp) == daddr) { in xfs_btree_lookup_get_block() [all …]
|
| A D | xfs_dquot_buf.c | 150 struct xfs_buf *bp, in xfs_dquot_buf_verify_crc() argument 185 struct xfs_buf *bp, in xfs_dquot_buf_verify() argument 188 struct xfs_dqblk *dqb = bp->b_addr; in xfs_dquot_buf_verify() 234 struct xfs_buf *bp) in xfs_dquot_buf_verify_struct() argument 236 struct xfs_mount *mp = bp->b_mount; in xfs_dquot_buf_verify_struct() 243 struct xfs_buf *bp) in xfs_dquot_buf_read_verify() argument 245 struct xfs_mount *mp = bp->b_mount; in xfs_dquot_buf_read_verify() 260 struct xfs_buf *bp) in xfs_dquot_buf_readahead_verify() argument 266 xfs_buf_ioerror(bp, -EIO); in xfs_dquot_buf_readahead_verify() 267 bp->b_flags &= ~XBF_DONE; in xfs_dquot_buf_readahead_verify() [all …]
|
| /fs/xfs/scrub/ |
| A D | dabtree.c | 173 bp->b_ops->verify_read(bp); in xchk_da_btree_read_verify() 181 bp->b_ops->verify_read(bp); in xchk_da_btree_read_verify() 195 bp->b_ops->verify_write(bp); in xchk_da_btree_write_verify() 203 bp->b_ops->verify_write(bp); in xchk_da_btree_write_verify() 217 return bp->b_ops->verify_struct(bp); in xchk_da_btree_verify() 220 return bp->b_ops->verify_struct(bp); in xchk_da_btree_verify() 281 altpath->blk[plevel].bp == path->blk[plevel].bp)) in xchk_da_btree_block_check_sibling() 349 if (blk->bp) { in xchk_da_btree_block() 351 blk->bp = NULL; in xchk_da_btree_block() 365 if (blk->bp) in xchk_da_btree_block() [all …]
|
| A D | agheader.c | 37 struct xfs_buf *bp) in xchk_superblock_xref() argument 103 struct xfs_buf *bp; in xchk_superblock() local 147 sb = bp->b_addr; in xchk_superblock() 168 xchk_block_set_preen(sc, bp); in xchk_superblock() 174 xchk_block_set_preen(sc, bp); in xchk_superblock() 224 xchk_block_set_preen(sc, bp); in xchk_superblock() 236 xchk_block_set_preen(sc, bp); in xchk_superblock() 257 xchk_block_set_preen(sc, bp); in xchk_superblock() 293 xchk_block_set_preen(sc, bp); in xchk_superblock() 296 xchk_block_set_preen(sc, bp); in xchk_superblock() [all …]
|
| /fs/bcachefs/ |
| A D | backpointers.c | 24 .btree = bp.btree_id, in bp_to_bbpos() 25 .pos = bp.pos, in bp_to_bbpos() 65 bch2_btree_id_level_to_text(out, bp.v->btree_id, bp.v->level); in bch2_backpointer_to_text() 79 bp.v->bucket_len = swab32(bp.v->bucket_len); in bch2_backpointer_swab() 159 bp->k.p, in bch2_bucket_backpointer_mod_nowritebuffer() 170 memcmp(bkey_s_c_to_backpointer(k).v, &bp->v, sizeof(bp->v)))) { in bch2_bucket_backpointer_mod_nowritebuffer() 283 bp.v->pos, in __bch2_backpointer_get_node() 293 if (extent_matches_bp(c, bp.v->btree_id, bp.v->level, in __bch2_backpointer_get_node() 323 bp.v->pos, in __bch2_backpointer_get_key() 325 bp.v->level, in __bch2_backpointer_get_key() [all …]
|