• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/xfs/

Lines Matching refs:btp

74 	xfs_dir2_block_tail_t	*btp;		/* block tail */
123 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
124 blp = XFS_DIR2_BLOCK_LEAF_P(btp);
128 if (!btp->stale) {
205 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *
208 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len)
249 for (fromidx = toidx = be32_to_cpu(btp->count) - 1,
266 lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1);
267 lfloghigh -= be32_to_cpu(btp->stale) - 1;
268 be32_add(&btp->count, -(be32_to_cpu(btp->stale) - 1));
271 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)),
273 blp += be32_to_cpu(btp->stale) - 1;
274 btp->stale = cpu_to_be32(1);
288 else if (btp->stale) {
289 lfloglow = be32_to_cpu(btp->count);
295 for (low = 0, high = be32_to_cpu(btp->count) - 1; low <= high; ) {
310 if (!btp->stale) {
323 be32_add(&btp->count, 1);
355 highstale < be32_to_cpu(btp->count) &&
364 (highstale == be32_to_cpu(btp->count) ||
376 ASSERT(highstale < be32_to_cpu(btp->count));
384 be32_add(&btp->stale, -1);
439 xfs_dir2_block_tail_t *btp; /* block tail */
475 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
477 endptr = (char *)XFS_DIR2_BLOCK_LEAF_P(btp);
562 xfs_dir2_block_tail_t *btp; /* block tail */
567 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
568 blp = XFS_DIR2_BLOCK_LEAF_P(btp);
582 xfs_dir2_block_tail_t *btp; /* block tail */
587 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
588 xfs_da_log_buf(tp, bp, (uint)((char *)btp - (char *)block),
589 (uint)((char *)(btp + 1) - (char *)block - 1));
603 xfs_dir2_block_tail_t *btp; /* block tail */
621 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
622 blp = XFS_DIR2_BLOCK_LEAF_P(btp);
649 xfs_dir2_block_tail_t *btp; /* block tail */
673 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
674 blp = XFS_DIR2_BLOCK_LEAF_P(btp);
679 for (low = 0, high = be32_to_cpu(btp->count) - 1; ; ) {
722 } while (++mid < be32_to_cpu(btp->count) && be32_to_cpu(blp[mid].hashval) == hash);
742 xfs_dir2_block_tail_t *btp; /* block tail */
766 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
767 blp = XFS_DIR2_BLOCK_LEAF_P(btp);
783 be32_add(&btp->stale, 1);
823 xfs_dir2_block_tail_t *btp; /* block tail */
841 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
842 blp = XFS_DIR2_BLOCK_LEAF_P(btp);
887 xfs_dir2_block_tail_t *btp; /* block tail */
965 * Use up the space at the end of the block (blp/btp).
972 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
973 btp->count = cpu_to_be32(be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale));
974 btp->stale = 0;
979 lep = XFS_DIR2_BLOCK_LEAF_P(btp);
985 ASSERT(to == be32_to_cpu(btp->count));
986 xfs_dir2_block_log_leaf(tp, dbp, 0, be32_to_cpu(btp->count) - 1);
1030 xfs_dir2_block_tail_t *btp; /* block tail pointer */
1103 i = (uint)sizeof(*btp) +
1117 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block);
1118 btp->count = cpu_to_be32(sfp->hdr.count + 2); /* ., .. */
1119 btp->stale = 0;
1120 blp = XFS_DIR2_BLOCK_LEAF_P(btp);
1218 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort);
1224 xfs_dir2_block_log_leaf(tp, bp, 0, be32_to_cpu(btp->count) - 1);