Lines Matching full:blocks
143 * data blocks at leaves and indirect blocks in intermediate nodes.
150 * we need to know is the capacity of indirect blocks (taken from the
158 * if our filesystem had 8Kb blocks. We might use long long, but that would
207 * ext2_get_branch - read the chain of indirect blocks leading to data
210 * @offsets: offsets of pointers in inode/indirect blocks
232 * or when it reads all @depth-1 indirect blocks successfully and finds
352 * of direct blocks need to be allocated for the given branch.
354 * @branch: chain of indirect blocks
355 * @k: number of blocks need for indirect blocks
356 * @blks: number of data blocks to be mapped.
359 * return the number of direct blocks to allocate.
369 * then it's clear blocks on that path have not allocated
389 * ext2_alloc_blocks: Allocate multiple blocks needed for a branch.
392 * @indirect_blks: The number of blocks needed to allocate for indirect blocks.
393 * @blks: The number of blocks need to allocate for direct blocks.
395 * the indirect blocks(if needed) and the first direct block.
398 * Return: Number of blocks allocated.
411 * Here we try to allocate the requested multiple blocks at once,
413 * To build a branch, we should allocate blocks for
414 * the indirect blocks(if not allocated yet), and at least
416 * minimum number of blocks need to allocate(required)
422 /* allocating blocks for indirect blocks and direct blocks */
428 /* allocate blocks for indirect blocks */
441 /* total number of blocks allocated for direct blocks */
454 * ext2_alloc_branch - allocate and set up a chain of blocks.
456 * @indirect_blks: depth of the chain (number of blocks to allocate)
457 * @blks: number of allocated direct blocks
459 * @offsets: offsets (in the blocks) to store the pointers to next.
462 * This function allocates @num blocks, zeroes out all but the last one,
474 * If allocation fails we free all blocks we've allocated (and forget
499 * metadata blocks and data blocks are allocated.
523 * data blocks numbers
555 * @num: number of indirect blocks we are adding
556 * @blks: number of direct blocks we are adding
578 * direct blocks blocks
610 * to tree, set linkage between the newborn blocks, write them if sync is
613 * removals - all blocks on the path are immune now) and possibly force the
616 * allocations is needed - we simply release blocks and do not touch anything
621 * return > 0, # of blocks mapped or allocated.
655 /*map more blocks*/
725 /* the number of blocks need to allocate for [d,t]indirect blocks */
729 * direct blocks to allocate for this branch.
746 * We must unmap blocks before zeroing so that writeback cannot
879 * Blocks allocated can be used by the buffered-io path.
1006 * ext2_find_shared - find the indirect blocks for partial truncation.
1010 * @chain: place to store the pointers to partial indirect blocks
1016 * blocks but leave the blocks themselves alive. Block is partially
1027 * truncated blocks - in @chain[].bh and pointers to their last elements
1089 * ext2_free_data - free a list of data blocks
1094 * We are freeing all blocks referred from that array (numbers are
1107 /* accumulate blocks to free if they're contiguous */
1134 * We are freeing all blocks referred from these branches (numbers are
1219 /* Clear the ends of indirect blocks on the shared branch */