Searched refs:btp (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 175 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_need_space() argument 194 if (btp->stale) { in xfs_dir2_block_need_space() 219 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space() 222 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space() 288 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_compact() argument 299 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact() 315 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact() 316 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact() 317 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact() 320 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact() [all …]
|
D | xfs_dir2_data.c | 48 xfs_dir2_block_tail_t *btp=NULL; /* block tail */ in __xfs_dir3_data_check() local 82 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 83 lep = xfs_dir2_block_leaf_p(btp); in __xfs_dir3_data_check() 93 XFS_WANT_CORRUPTED_RETURN(mp, be32_to_cpu(btp->count) < in __xfs_dir3_data_check() 94 ((char *)btp - p) / sizeof(struct xfs_dir2_leaf_entry)); in __xfs_dir3_data_check() 182 for (i = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 188 i < be32_to_cpu(btp->count)); in __xfs_dir3_data_check() 198 for (i = stale = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 208 be32_to_cpu(btp->count) - be32_to_cpu(btp->stale)); in __xfs_dir3_data_check() 209 XFS_WANT_CORRUPTED_RETURN(mp, stale == be32_to_cpu(btp->stale)); in __xfs_dir3_data_check() [all …]
|
D | xfs_da_format.h | 602 xfs_dir2_block_leaf_p(struct xfs_dir2_block_tail *btp) in xfs_dir2_block_leaf_p() argument 604 return ((struct xfs_dir2_leaf_entry *)btp) - be32_to_cpu(btp->count); in xfs_dir2_block_leaf_p()
|
D | xfs_dir2_sf.c | 69 xfs_dir2_block_tail_t *btp; /* tail area of the block */ in xfs_dir2_block_sfsize() local 93 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize() 94 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_sfsize() 99 for (i = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_block_sfsize() 160 xfs_dir2_block_tail_t *btp; /* block tail pointer */ in xfs_dir2_block_to_sf() local 196 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_sf() 198 endptr = (char *)xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_sf()
|
D | xfs_dir2_leaf.c | 383 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf() local 421 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf() 422 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_leaf() 430 leafhdr.count = be32_to_cpu(btp->count); in xfs_dir2_block_to_leaf() 431 leafhdr.stale = be32_to_cpu(btp->stale); in xfs_dir2_block_to_leaf() 439 memcpy(ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
|
/linux-4.4.14/fs/xfs/ |
D | xfs_buf.c | 436 struct xfs_buftarg *btp, in _xfs_buf_find() argument 455 ASSERT(!(BBTOB(numblks) < btp->bt_meta_sectorsize)); in _xfs_buf_find() 456 ASSERT(!(BBTOB(blkno) & (xfs_off_t)btp->bt_meta_sectormask)); in _xfs_buf_find() 462 eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); in _xfs_buf_find() 469 xfs_alert(btp->bt_mount, in _xfs_buf_find() 477 pag = xfs_perag_get(btp->bt_mount, in _xfs_buf_find() 478 xfs_daddr_to_agno(btp->bt_mount, blkno)); in _xfs_buf_find() 520 XFS_STATS_INC(btp->bt_mount, xb_miss_locked); in _xfs_buf_find() 533 XFS_STATS_INC(btp->bt_mount, xb_busy_locked); in _xfs_buf_find() 537 XFS_STATS_INC(btp->bt_mount, xb_get_locked_waited); in _xfs_buf_find() [all …]
|
D | xfs_dir2_readdir.c | 165 xfs_dir2_block_tail_t *btp; /* block tail */ in xfs_dir2_block_getdents() local 198 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_getdents() 200 endptr = (char *)xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_getdents()
|