Lines Matching defs:block

10  *  Enhanced block allocation by Stephen Tweedie (sct@redhat.com), 1993
33 * Calculate block group number for a given block number
36 ext4_fsblk_t block)
41 group = (block -
45 ext4_get_group_no_and_offset(sb, block, &group, NULL);
50 * Calculate the block group number and offset into the block/cluster
51 * allocation bitmap, given a block number
70 * Check whether the 'block' lives within the 'block_group'. Returns 1 if so
74 ext4_fsblk_t block,
79 actual_group = ext4_get_group_number(sb, block);
97 * block group descriptors, and reserved block group
103 * to check to see if the block is in the block group. If it
107 * that block. Otherwise, we will have to track the cluster
178 /* Initializes an uninitialized block bitmap */
209 /* Set bits for block and inode bitmaps, and inode table */
228 * of the block bitmap to 1
235 /* Return the number of free blocks in a block group. It is used when
236 * the block bitmap is uninitialized, so we can't just count the bits
248 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
249 * block for inodes, N blocks for the inode table and data blocks.
252 * super block. Each descriptor contains the number of the bitmap block and
253 * the free blocks count in the block. The descriptors are loaded in memory
259 * @sb: super block
260 * @block_group: given block group
261 * @bh: pointer to the buffer head to store the block
337 * Return the block number which was discovered to be invalid, or 0 if
338 * the block bitmap is valid.
353 /* with FLEX_BG, the inode/block bitmaps and itable
356 * or it has to also read the block group where the bitmaps
363 /* check whether block bitmap block number is set */
368 /* bad block bitmap */
371 /* check whether the inode bitmap block number is set */
376 /* bad block bitmap */
379 /* check whether the inode table block number is set */
420 ext4_error(sb, "bg %u: bad block bitmap checksum", block_group);
428 ext4_error(sb, "bg %u: block %llu: invalid block bitmap",
437 ext4_error(sb, "bg %u: block %llu: padding at end of block bitmap is not set",
451 * @sb: super block
452 * @block_group: given block group
455 * bits for block/inode/inode tables are set in the bitmaps
475 ext4_error(sb, "Invalid block bitmap block %llu in "
483 ext4_warning(sb, "Cannot get buffer for block bitmap - "
521 ext4_error(sb, "Failed to init block bitmap for group "
570 ext4_error_err(sb, EIO, "Cannot read block bitmap - "
578 /* Panic or remount fs read-only if block bitmap is invalid */
601 * @sbi: in-core super block structure.
667 * ext4_should_retry_alloc() - check if a block allocation should be retried
707 * ext4_new_meta_blocks() -- allocate block for meta data (indexing) blocks
711 * @goal: given target block(filesystem wide)
715 * Return 1st allocated block number on success, *count stores total account
750 * Adds up the number of free clusters from each block group.
907 * the beginning of a block group, including the reserved gdt blocks.
938 * ext4_inode_to_goal_block - return a hint for block allocation
939 * @inode: inode for block allocation
957 * block groups per flexgroup, reserve the first block
959 * files will start at the second block group. This