Lines Matching defs:block
50 * Get a buffer for the bitmap or summary file block specified.
57 xfs_rtblock_t block, /* block number in bitmap or summary */
59 struct xfs_buf **bpp) /* output: buffer for the block */
61 struct xfs_buf *bp; /* block buffer, result */
69 error = xfs_bmapi_read(ip, block, 1, &map, &nmap, 0);
90 * Searching backward from start to limit, find the first block whose
97 xfs_rtblock_t start, /* starting block to look at */
98 xfs_rtblock_t limit, /* last block to look at */
99 xfs_rtblock_t *rtblock) /* out: start block found */
103 xfs_rtblock_t block; /* bitmap block number */
104 struct xfs_buf *bp; /* buf for the block */
116 * Compute and read in starting bitmap block for starting block.
118 block = XFS_BITTOBLOCK(mp, start);
119 error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
163 * Go on to previous block if that's where the previous word is
168 * If done with this block, get the previous one.
171 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp);
209 * Go on to previous block if that's where the previous word is
214 * If done with this block, get the previous one.
217 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp);
265 * Searching forward from start to limit, find the first block whose
272 xfs_rtblock_t start, /* starting block to look at */
273 xfs_rtblock_t limit, /* last block to look at */
274 xfs_rtblock_t *rtblock) /* out: start block found */
278 xfs_rtblock_t block; /* bitmap block number */
279 struct xfs_buf *bp; /* buf for the block */
291 * Compute and read in starting bitmap block for starting block.
293 block = XFS_BITTOBLOCK(mp, start);
294 error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
337 * Go on to next block if that's where the next word is
342 * If done with this block, get the previous one.
345 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
382 * Go on to next block if that's where the next word is
387 * If done with this block, get the next one.
390 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
436 * bitmap block combination.
437 * Keeps track of a current summary block, so we don't keep reading
448 xfs_rtblock_t bbno, /* bitmap block number */
450 struct xfs_buf **rbpp, /* in/out: summary block buffer */
451 xfs_fsblock_t *rsb, /* in/out: summary block number */
452 xfs_suminfo_t *sum) /* out: summary info for this block */
454 struct xfs_buf *bp; /* buffer for the summary block */
465 * Compute the block number in the summary file.
469 * If we have an old buffer, and the block number matches, use that.
487 * Remember this buffer and block for the next call.
518 xfs_rtblock_t bbno, /* bitmap block number */
520 struct xfs_buf **rbpp, /* in/out: summary block buffer */
521 xfs_fsblock_t *rsb) /* in/out: summary block number */
535 xfs_rtblock_t start, /* starting block to modify */
541 xfs_rtblock_t block; /* bitmap block number */
542 struct xfs_buf *bp; /* buf for the block */
552 * Compute starting bitmap block number.
554 block = XFS_BITTOBLOCK(mp, start);
556 * Read the bitmap block, and point to its data.
558 error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
592 * Go on to the next block if that's where the next word is
597 * Log the changed part of this block.
603 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
632 * Go on to the next block if that's where the next word is
637 * Log the changed part of this block.
643 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
691 xfs_rtblock_t start, /* starting block to free */
693 struct xfs_buf **rbpp, /* in/out: summary block buffer */
694 xfs_fsblock_t *rsb) /* in/out: summary block number */
698 xfs_rtblock_t postblock; /* first block freed > end */
699 xfs_rtblock_t preblock; /* first block freed < start */
719 * Find the next allocated block (end of allocated extent).
767 xfs_rtblock_t start, /* starting block number of extent */
770 xfs_rtblock_t *new, /* out: first block not matching */
775 xfs_rtblock_t block; /* bitmap block number */
776 struct xfs_buf *bp; /* buf for the block */
786 * Compute starting bitmap block number
788 block = XFS_BITTOBLOCK(mp, start);
790 * Read the bitmap block.
792 error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
835 * Go on to next block if that's where the next word is
840 * If done with this block, get the next one.
843 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
881 * Go on to next block if that's where the next word is
886 * If done with this block, get the next one.
889 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
937 * Check that the given extent (block range) is allocated already.
943 xfs_rtblock_t bno, /* starting block number of extent */
961 * realtime extents, as is the block number.
966 xfs_rtblock_t bno, /* starting block number to free */
971 xfs_fsblock_t sb; /* summary file block number */
972 struct xfs_buf *sumbp = NULL; /* summary file block buffer */
1069 /* Is the first block free? */