Searched refs:btp (Results 1 – 7 of 7) sorted by relevance
/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 190 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_need_space() argument 209 if (btp->stale) { in xfs_dir2_block_need_space() 234 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space() 237 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space() 303 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_compact() argument 314 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact() 330 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact() 331 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact() 332 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact() 335 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact() [all …]
|
D | xfs_dir2_data.c | 38 xfs_dir2_block_tail_t *btp=NULL; /* block tail */ in __xfs_dir3_data_check() local 79 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 80 lep = xfs_dir2_block_leaf_p(btp); in __xfs_dir3_data_check() 89 if (be32_to_cpu(btp->count) >= in __xfs_dir3_data_check() 90 ((char *)btp - p) / sizeof(struct xfs_dir2_leaf_entry)) in __xfs_dir3_data_check() 193 for (i = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 198 if (i >= be32_to_cpu(btp->count)) in __xfs_dir3_data_check() 210 for (i = stale = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 218 if (count != be32_to_cpu(btp->count) - be32_to_cpu(btp->stale)) in __xfs_dir3_data_check() 220 if (stale != be32_to_cpu(btp->stale)) in __xfs_dir3_data_check()
|
D | xfs_da_format.h | 537 xfs_dir2_block_leaf_p(struct xfs_dir2_block_tail *btp) in xfs_dir2_block_leaf_p() argument 539 return ((struct xfs_dir2_leaf_entry *)btp) - be32_to_cpu(btp->count); in xfs_dir2_block_leaf_p()
|
D | xfs_dir2_leaf.c | 338 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf() local 376 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf() 377 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_leaf() 385 leafhdr.count = be32_to_cpu(btp->count); in xfs_dir2_block_to_leaf() 386 leafhdr.stale = be32_to_cpu(btp->stale); in xfs_dir2_block_to_leaf() 394 memcpy(ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
|
D | xfs_dir2_sf.c | 54 xfs_dir2_block_tail_t *btp; /* tail area of the block */ in xfs_dir2_block_sfsize() local 78 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize() 79 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_sfsize() 84 for (i = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_block_sfsize()
|
/fs/xfs/ |
D | xfs_buf.c | 569 struct xfs_buftarg *btp, in xfs_buf_find() argument 588 ASSERT(!(BBTOB(cmap.bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_find() 589 ASSERT(!(BBTOB(cmap.bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_find() 595 eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); in xfs_buf_find() 597 xfs_alert(btp->bt_mount, in xfs_buf_find() 604 pag = xfs_perag_get(btp->bt_mount, in xfs_buf_find() 605 xfs_daddr_to_agno(btp->bt_mount, cmap.bm_bn)); in xfs_buf_find() 617 XFS_STATS_INC(btp->bt_mount, xb_miss_locked); in xfs_buf_find() 638 XFS_STATS_INC(btp->bt_mount, xb_busy_locked); in xfs_buf_find() 642 XFS_STATS_INC(btp->bt_mount, xb_get_locked_waited); in xfs_buf_find() [all …]
|
D | xfs_pwork.c | 129 struct xfs_buftarg *btp = mp->m_ddev_targp; in xfs_pwork_guess_datadev_parallelism() local 135 return blk_queue_nonrot(btp->bt_bdev->bd_queue) ? 2 : 1; in xfs_pwork_guess_datadev_parallelism()
|