Lines Matching defs:blocks

416  * gfs2_extent_length - Returns length of an extent of blocks
457 * gfs2_walk_metadata - walk a tree of indirect blocks
460 * @max_len: Maximum number of blocks to walk
574 * @len: How far to look (in blocks)
638 * i) Indirect blocks to grow the metadata tree height
639 * ii) Indirect blocks to fill in lower part of the metadata tree
640 * iii) Data blocks
643 * total number of blocks which we need via gfs2_alloc_size.
646 * enough contiguous free blocks are available, there will only be one
648 * the blocks in order.
655 * iomap iteration would then find the blocks already allocated.
687 /* Need to allocate indirect blocks */
757 fallthrough; /* To tree complete, adding data blocks */
788 * @size: Requested size in blocks
792 * Returns: size in blocks
829 * gfs2_iomap_get - Map blocks from an inode to disk blocks
1032 unsigned int blocks;
1034 blocks = ((pos & blockmask) + len + blockmask) >> inode->i_blkbits;
1035 return gfs2_trans_begin(sdp, RES_DINODE + blocks, 0);
1234 /* Deallocate blocks that were just allocated. */
1263 * gfs2_block_map - Map one or more blocks of an inode to a disk block
1267 * @create: True if its ok to alloc blocks to satify the request
1274 * successive blocks are mapped, up to the requested size.
1278 * blocks were allocated.
1474 * sweep_bh_for_rgrps - find an rgrp in a meta buffer and free blocks therein
1481 * @btotal: place to keep count of total blocks freed
1483 * We sweep a metadata buffer (provided by the metapath) for blocks we need to
1493 * *btotal has the total number of blocks freed
1548 actually process all the metadata blocks that relate to
1573 /* check if we will exceed the transaction blocks requested */
1619 if (!ret && blks_outside_rgrp) { /* If buffer still has non-zero blocks
1738 * punch_hole - deallocate blocks in a file
1744 * function operates in whole blocks (@offset and @length are rounded
1745 * accordingly); partially filled blocks must be cleared otherwise.
1775 * there are no blocks do deallocate.
1952 /* No read-ahead for data blocks. */
2240 * @blocks: Size of extent in fs blocks
2245 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks)
2251 if ((jext->dblock + jext->blocks) == dblock) {
2252 jext->blocks += blocks;
2262 jext->blocks = blocks;
2274 * blocks to all physical blocks for the given journal. This will save
2275 * us time when writing journal blocks. Most journals will have only one
2276 * extent that maps all their logical blocks. That's because gfs2.mkfs
2277 * arranges the journal blocks sequentially to maximize performance.