Lines Matching defs:blocks
415 * gfs2_extent_length - Returns length of an extent of blocks
456 * gfs2_walk_metadata - walk a tree of indirect blocks
459 * @max_len: Maximum number of blocks to walk
573 * @len: How far to look (in blocks)
636 * i) Indirect blocks to grow the metadata tree height
637 * ii) Indirect blocks to fill in lower part of the metadata tree
638 * iii) Data blocks
641 * total number of blocks which we need via gfs2_alloc_size.
644 * enough contiguous free blocks are available, there will only be one
646 * the blocks in order.
653 * iomap iteration would then find the blocks already allocated.
685 /* Need to allocate indirect blocks */
755 fallthrough; /* To tree complete, adding data blocks */
786 * @size: Requested size in blocks
790 * Returns: size in blocks
827 * __gfs2_iomap_get - Map blocks from an inode to disk blocks
965 unsigned int blocks;
969 blocks = ((pos & blockmask) + len + blockmask) >> inode->i_blkbits;
970 status = gfs2_trans_begin(sdp, RES_DINODE + blocks, 0);
1165 /* Deallocate blocks that were just allocated. */
1190 * gfs2_block_map - Map one or more blocks of an inode to a disk block
1194 * @create: True if its ok to alloc blocks to satify the request
1201 * successive blocks are mapped, up to the requested size.
1205 * blocks were allocated.
1429 * sweep_bh_for_rgrps - find an rgrp in a meta buffer and free blocks therein
1436 * @btotal: place to keep count of total blocks freed
1438 * We sweep a metadata buffer (provided by the metapath) for blocks we need to
1448 * *btotal has the total number of blocks freed
1503 actually process all the metadata blocks that relate to
1528 /* check if we will exceed the transaction blocks requested */
1574 if (!ret && blks_outside_rgrp) { /* If buffer still has non-zero blocks
1695 * punch_hole - deallocate blocks in a file
1701 * function operates in whole blocks (@offset and @length are rounded
1702 * accordingly); partially filled blocks must be cleared otherwise.
1732 * there are no blocks to deallocate.
1909 /* No read-ahead for data blocks. */
2189 * @blocks: Size of extent in fs blocks
2194 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks)
2200 if ((jext->dblock + jext->blocks) == dblock) {
2201 jext->blocks += blocks;
2211 jext->blocks = blocks;
2223 * blocks to all physical blocks for the given journal. This will save
2224 * us time when writing journal blocks. Most journals will have only one
2225 * extent that maps all their logical blocks. That's because gfs2.mkfs
2226 * arranges the journal blocks sequentially to maximize performance.