Home
last modified time | relevance | path

Searched refs:BBTOB (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/fs/xfs/scrub/
Dagheader_repair.c51 xfs_buf_zero(bp, 0, BBTOB(bp->b_length)); in xrep_superblock()
56 xfs_trans_log_buf(sc->tp, bp, 0, BBTOB(bp->b_length) - 1); in xrep_superblock()
187 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header()
312 xfs_trans_log_buf(sc->tp, agf_bp, 0, BBTOB(agf_bp->b_length) - 1); in xrep_agf_commit_new()
586 memset(agfl, 0xFF, BBTOB(agfl_bp->b_length)); in xrep_agfl_init_header()
624 xfs_trans_log_buf(sc->tp, agfl_bp, 0, BBTOB(agfl_bp->b_length) - 1); in xrep_agfl_init_header()
760 memset(agi, 0, BBTOB(agi_bp->b_length)); in xrep_agi_init_header()
861 xfs_trans_log_buf(sc->tp, agi_bp, 0, BBTOB(agi_bp->b_length) - 1); in xrep_agi_commit_new()
Drepair.c357 xfs_buf_zero(bp, 0, BBTOB(bp->b_length)); in xrep_init_btblock()
360 xfs_trans_log_buf(tp, bp, 0, BBTOB(bp->b_length) - 1); in xrep_init_btblock()
Dialloc.c289 if (imap.im_boffset >= BBTOB(cluster_bp->b_length)) { in xchk_iallocbt_check_cluster()
Dagheader.c333 BBTOB(bp->b_length) - sizeof(struct xfs_dsb))) in xchk_superblock()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_buf_item.c360 offset += BBTOB(bp->b_maps[i].bm_len); in xfs_buf_item_format()
742 chunks = DIV_ROUND_UP(BBTOB(bp->b_maps[i].bm_len), in xfs_buf_item_init()
751 BBTOB(bp->b_maps[i].bm_len)); in xfs_buf_item_init()
873 end = start + BBTOB(bp->b_maps[i].bm_len) - 1; in xfs_buf_item_log()
877 start += BBTOB(bp->b_maps[i].bm_len); in xfs_buf_item_log()
894 start += BBTOB(bp->b_maps[i].bm_len); in xfs_buf_item_log()
Dxfs_buf_item_recover.c463 ASSERT(BBTOB(bp->b_length) >= in xlog_recover_do_reg_buffer()
603 inodes_per_buf = BBTOB(bp->b_length) >> mp->m_sb.sb_inodelog; in xlog_recover_do_inode_buffer()
645 ASSERT((reg_buf_offset + reg_buf_bytes) <= BBTOB(bp->b_length)); in xlog_recover_do_inode_buffer()
972 (BBTOB(bp->b_length) != M_IGEO(log->l_mp)->inode_cluster_size)) { in xlog_recover_buf_commit_pass2()
Dxfs_buf.h333 return xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length), in xfs_buf_verify_cksum()
340 xfs_update_cksum(bp->b_addr, BBTOB(bp->b_length), in xfs_buf_update_cksum()
Dxfs_buf.c379 size = BBTOB(bp->b_length); in xfs_buf_allocate_memory()
405 start = BBTOB(bp->b_maps[0].bm_bn) >> PAGE_SHIFT; in xfs_buf_allocate_memory()
406 end = (BBTOB(bp->b_maps[0].bm_bn + bp->b_length) + PAGE_SIZE - 1) in xfs_buf_allocate_memory()
604 ASSERT(!(BBTOB(cmap.bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_find()
605 ASSERT(!(BBTOB(cmap.bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_find()
1502 size = min_t(int, BBTOB(bp->b_maps[map].bm_len), *count); in xfs_buf_ioapply_map()
1617 size = BBTOB(bp->b_length); in _xfs_buf_ioapply()
1747 BBTOB(bp->b_length) - boff); in xfs_buf_zero()
Dxfs_log_recover.c110 return kmem_alloc_io(BBTOB(nbblks), align_mask, KM_MAYFAIL | KM_ZERO); in xlog_alloc_buffer()
122 return BBTOB(blk_no & ((xfs_daddr_t)log->l_sectBBsize - 1)); in xlog_align()
147 BBTOB(nbblks), data, op); in xlog_do_io()
1223 BBTOB(log->l_curr_block)); in xlog_set_state()
1225 BBTOB(log->l_curr_block)); in xlog_set_state()
1572 buffer + BBTOB(ealign - start_block)); in xlog_write_log_records()
3068 offset + BBTOB(split_hblks)); in xlog_do_recovery_pass()
3129 offset + BBTOB(split_bblks)); in xlog_do_recovery_pass()
Dxfs_fsmap.c36 dest->fmr_physical = BBTOB(src->fmr_physical); in xfs_fsmap_from_internal()
38 dest->fmr_offset = BBTOB(src->fmr_offset); in xfs_fsmap_from_internal()
39 dest->fmr_length = BBTOB(src->fmr_length); in xfs_fsmap_from_internal()
Dxfs_log_priv.h363 min_t(int, (log)->l_logsize >> 3, BBTOB(XLOG_TOTAL_REC_SHIFT(log)) << 4)
Dxfs_log.c1162 tail_bytes = BBTOB(tail_bytes); in xlog_space_left()
1328 log->l_logsize = BBTOB(num_bblks); in xlog_alloc_log()
1774 unsigned int split_offset = BBTOB(log->l_logBBsize - bno); in xlog_split_iclog()
1806 count = BBTOB(BTOBB(count_init)); in xlog_calc_iclog_size()
1815 ASSERT(*roundoff < BBTOB(1)); in xlog_calc_iclog_size()
3523 if (space > BBTOB(tail_blocks) && in xlog_verify_grant_tail()
Dxfs_mount.c416 if ((BBTOB(mp->m_dalign) & mp->m_blockmask) || in xfs_validate_new_dalign()
417 (BBTOB(mp->m_swidth) & mp->m_blockmask)) { in xfs_validate_new_dalign()
Dxfs_dquot.c220 memset(d, 0, BBTOB(q->qi_dqchunklen)); in xfs_qm_init_dquot_blk()
256 xfs_trans_log_buf(tp, bp, 0, BBTOB(q->qi_dqchunklen) - 1); in xfs_qm_init_dquot_blk()
Dxfs_trans_buf.c499 ASSERT(first <= last && last < BBTOB(bp->b_length)); in xfs_trans_log_buf()
Dxfs_iomap.c73 iomap->addr = BBTOB(xfs_fsb_to_db(ip, imap->br_startblock)); in xfs_bmbt_to_iomap()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_attr_remote.c134 len = BBTOB(bp->b_length); in __xfs_attr3_rmt_read_verify()
199 len = BBTOB(bp->b_length); in xfs_attr3_rmt_write_verify()
288 int len = BBTOB(bp->b_length); in xfs_attr_rmtval_copyout()
336 int len = BBTOB(bp->b_length); in xfs_attr_rmtval_copyin()
Dxfs_symlink_remote.c187 ASSERT(BBTOB(bp->b_length) >= in xfs_symlink_local_to_remote()
Dxfs_dquot_buf.c25 return BBTOB(nbblks) / sizeof(xfs_dqblk_t); in xfs_calc_dquots_per_chunk()
Dxfs_fs.h853 #define BBTOB(bbs) ((bbs) << BBSHIFT) macro
Dxfs_ag.c41 xfs_buf_zero(bp, 0, BBTOB(bp->b_length)); in xfs_get_aghdr_buf()
Dxfs_dir2_data.c284 bp->b_addr, BBTOB(bp->b_length), __FILE__, __LINE__, in xfs_dir3_data_check()
Dxfs_sb.c1052 xfs_buf_zero(bp, 0, BBTOB(bp->b_length)); in xfs_update_secondary_sbs()
Dxfs_dir2_leaf.c130 bp->b_addr, BBTOB(bp->b_length), __FILE__, __LINE__, in xfs_dir3_leaf_check()
/kernel/linux/linux-5.10/Documentation/filesystems/
Dxfs-self-describing-metadata.rst231 !xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length),
320 xfs_update_cksum(bp->b_addr, BBTOB(bp->b_length), XFS_FOO_CRC_OFF);

12