Home
last modified time | relevance | path

Searched refs:btp (Results 1 – 7 of 7) sorted by relevance

/fs/xfs/
Dxfs_dir2_block.c75 xfs_dir2_block_tail_t *btp; /* block tail */ in xfs_dir2_block_addname() local
124 btp = xfs_dir2_block_tail_p(mp, block); in xfs_dir2_block_addname()
125 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
129 if (!btp->stale) { in xfs_dir2_block_addname()
206 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_addname()
209 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_addname()
255 for (fromidx = toidx = be32_to_cpu(btp->count) - 1, in xfs_dir2_block_addname()
272 lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_addname()
273 lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_addname()
274 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_addname()
[all …]
Dxfs_dir2_data.c53 xfs_dir2_block_tail_t *btp=NULL; /* block tail */ in xfs_dir2_data_check() local
77 btp = xfs_dir2_block_tail_p(mp, (xfs_dir2_block_t *)d); in xfs_dir2_data_check()
78 lep = xfs_dir2_block_leaf_p(btp); in xfs_dir2_data_check()
147 for (i = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_data_check()
152 ASSERT(i < be32_to_cpu(btp->count)); in xfs_dir2_data_check()
161 for (i = stale = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_data_check()
167 ASSERT(count == be32_to_cpu(btp->count) - be32_to_cpu(btp->stale)); in xfs_dir2_data_check()
168 ASSERT(stale == be32_to_cpu(btp->stale)); in xfs_dir2_data_check()
333 xfs_dir2_block_tail_t *btp; /* block tail */ in xfs_dir2_data_freescan() local
353 btp = xfs_dir2_block_tail_p(mp, (xfs_dir2_block_t *)d); in xfs_dir2_data_freescan()
[all …]
Dxfs_dir2_block.h74 xfs_dir2_block_leaf_p(xfs_dir2_block_tail_t *btp) in xfs_dir2_block_leaf_p() argument
76 return ((struct xfs_dir2_leaf_entry *)btp) - be32_to_cpu(btp->count); in xfs_dir2_block_leaf_p()
Dxfs_dir2_sf.c78 xfs_dir2_block_tail_t *btp; /* tail area of the block */ in xfs_dir2_block_sfsize() local
93 btp = xfs_dir2_block_tail_p(mp, block); 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()
159 xfs_dir2_block_tail_t *btp; /* block tail pointer */ in xfs_dir2_block_to_sf() local
208 btp = xfs_dir2_block_tail_p(mp, block); in xfs_dir2_block_to_sf()
210 endptr = (char *)xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_sf()
Dxfs_rw.h75 extern int xfs_read_buf(struct xfs_mount *mp, xfs_buftarg_t *btp,
Dxfs_dir2_leaf.c71 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf() local
107 btp = xfs_dir2_block_tail_p(mp, block); in xfs_dir2_block_to_leaf()
108 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_leaf()
112 leaf->hdr.count = cpu_to_be16(be32_to_cpu(btp->count)); in xfs_dir2_block_to_leaf()
113 leaf->hdr.stale = cpu_to_be16(be32_to_cpu(btp->stale)); in xfs_dir2_block_to_leaf()
118 memcpy(leaf->ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
/fs/xfs/linux-2.6/
Dxfs_buf.c491 xfs_buftarg_t *btp, /* block device target */ in _xfs_buf_find() argument
506 ASSERT(!(range_length < (1 << btp->bt_sshift))); in _xfs_buf_find()
507 ASSERT(!(range_base & (xfs_off_t)btp->bt_smask)); in _xfs_buf_find()
509 hash = &btp->bt_hash[hash_long((unsigned long)ioff, btp->bt_hashshift)]; in _xfs_buf_find()
514 ASSERT(btp == bp->b_target); in _xfs_buf_find()
529 _xfs_buf_initialize(new_bp, btp, range_base, in _xfs_buf_find()
1361 xfs_buftarg_t *btp) in xfs_wait_buftarg() argument
1367 for (i = 0; i < (1 << btp->bt_hashshift); i++) { in xfs_wait_buftarg()
1368 hash = &btp->bt_hash[i]; in xfs_wait_buftarg()
1372 ASSERT(btp == bp->b_target); in xfs_wait_buftarg()
[all …]