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);
100 * block group descriptors, and reserved block group
107 * is in the block group, or inode table cluster range is
108 * [-1, -1] and won't overlap with block/inode bitmap cluster
130 * if the block is in the block group. If it is, then check
182 /* Initializes an uninitialized block bitmap */
211 /* Set bits for block and inode bitmaps, and inode table */
230 * of the block bitmap to 1
237 /* Return the number of free blocks in a block group. It is used when
238 * the block bitmap is uninitialized, so we can't just count the bits
250 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
251 * block for inodes, N blocks for the inode table and data blocks.
254 * super block. Each descriptor contains the number of the bitmap block and
255 * the free blocks count in the block. The descriptors are loaded in memory
261 * @sb: super block
262 * @block_group: given block group
263 * @bh: pointer to the buffer head to store the block
339 * Return the block number which was discovered to be invalid, or 0 if
340 * the block bitmap is valid.
355 /* with FLEX_BG, the inode/block bitmaps and itable
358 * or it has to also read the block group where the bitmaps
365 /* check whether block bitmap block number is set */
370 /* bad block bitmap */
373 /* check whether the inode bitmap block number is set */
378 /* bad block bitmap */
381 /* check whether the inode table block number is set */
421 ext4_error(sb, "bg %u: bad block bitmap checksum", block_group);
429 ext4_error(sb, "bg %u: block %llu: invalid block bitmap",
438 ext4_error(sb, "bg %u: block %llu: padding at end of block bitmap is not set",
452 * @sb: super block
453 * @block_group: given block group
457 * bits for block/inode/inode tables are set in the bitmaps
477 ext4_error(sb, "Invalid block bitmap block %llu in "
485 ext4_warning(sb, "Cannot get buffer for block bitmap - "
520 ext4_error(sb, "Failed to init block bitmap for group "
574 ext4_error_err(sb, EIO, "Cannot read block bitmap - "
582 /* Panic or remount fs read-only if block bitmap is invalid */
605 * @sbi: in-core super block structure.
671 * ext4_should_retry_alloc() - check if a block allocation should be retried
717 * ext4_new_meta_blocks() -- allocate block for meta data (indexing) blocks
721 * @goal: given target block(filesystem wide)
725 * Return 1st allocated block number on success, *count stores total account
760 * Adds up the number of free clusters from each block group.
917 * the beginning of a block group, including the reserved gdt blocks.
948 * ext4_inode_to_goal_block - return a hint for block allocation
949 * @inode: inode for block allocation
967 * block groups per flexgroup, reserve the first block
969 * files will start at the second block group. This