Lines Matching refs:block

113 /* data type for block offset of block group */
119 /* data type for file logical block number */
122 /* data type for block group number */
148 * except block prefetch.
159 * Reads each block group sequentially, performing disk IO if
160 * necessary, to find find_suitable block group. Tries to
214 /* Do strict check for free blocks while retrying block allocation */
227 /* target inode for block we're allocating */
231 /* logical block in target inode */
233 /* the closest logical allocated block to the left */
235 /* the closest logical allocated block to the right */
239 /* phys. block for the closest logical allocated block to the left */
241 /* phys. block for the closest logical allocated block to the right */
248 * Logical to physical block mapping, used by ext4_map_blocks()
333 * Macro-instructions used to manage several block sizes
371 /* Translate a block number to a cluster number */
373 /* Translate a cluster number to a block number */
378 /* Mask out the low bits to get the starting block of the cluster */
383 /* Fill in the low bits to get the last block of the cluster */
397 __le32 bg_block_bitmap_lo; /* Blocks bitmap block */
398 __le32 bg_inode_bitmap_lo; /* Inodes bitmap block */
399 __le32 bg_inode_table_lo; /* Inodes table block */
409 __le32 bg_block_bitmap_hi; /* Blocks bitmap block MSB */
410 __le32 bg_inode_bitmap_hi; /* Inodes bitmap block MSB */
411 __le32 bg_inode_table_hi; /* Inodes table block MSB */
416 __le32 bg_exclude_bitmap_hi; /* Exclude bitmap block MSB */
430 * Structure of a flex block group info
678 BLOCK_BITMAP = 0, /* block bitmap */
762 /* Max physical block we can address w/o extents */
765 /* Max logical block we can support */
1013 * i_block_group is the number of the block group which contains
1015 * it is used for making block allocation decisions - we try to
1016 * place a file's data blocks near its inode block, and new inodes
1214 #define EXT4_MOUNT_BARRIER 0x20000 /* Use block barriers */
1302 * Structure of the super block
1345 __le16 s_block_group_nr; /* block group # of this superblock */
1372 __le32 s_first_meta_bg; /* First metablock block group */
1401 __le64 s_first_error_block; /* block involved of first error */
1407 __le64 s_last_error_block; /* block involved of last error */
1431 __le32 s_reserved[94]; /* Padding to the end of the block */
1465 /* Structure at the tail of orphan block */
1478 atomic_t ob_free_entries; /* Number of free orphan entries in block */
1479 struct buffer_head *ob_bh; /* Buffer for orphan block */
1493 * fourth extended-fs super-block data in memory
1497 unsigned long s_inodes_per_block;/* Number of inodes per block */
1503 unsigned long s_desc_per_block; /* Number of group descriptors per block */
1510 struct buffer_head * s_sbh; /* Buffer containing the super block */
1511 struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */
1512 /* Array of bh's for the block group descriptors */
1704 /* Record the errseq of the backing block device */
2289 * directories into the first block group of a flexgroup
2351 * This is a bogus directory entry at the end of each leaf block that
2362 #define EXT4_DIRENT_TAIL(block, blocksize) \
2363 ((struct ext4_dir_entry_tail *)(((void *)(block)) + \
2410 * If we ever get support for fs block sizes > page_size, we'll need
2558 /* calculate the first block number of the group */
2620 * written into the block number saved in the s_mmp_block field in the
2639 char mmp_nodename[64]; /* Node which last updated MMP block */
2640 char mmp_bdevname[32]; /* Bdev which last updated MMP block */
2643 * mmp_check_interval is used to verify if the MMP block has been
2644 * updated on the block device. The value is updated based on the
2645 * maximum time to write the MMP block during an update cycle.
2657 struct super_block *sb; /* super block of the fs */
2662 * The MMP block is written every update interval and initially checked every
2713 ext4_fsblk_t block);
2906 bool ext4_fc_replay_check_excluded(struct super_block *sb, ext4_fsblk_t block);
2933 struct buffer_head *bh, ext4_fsblk_t block,
2940 ext4_fsblk_t block, unsigned long count);
2943 extern void ext4_mb_mark_bb(struct super_block *sb, ext4_fsblk_t block,
2956 int ext4_bread_batch(struct inode *inode, ext4_lblk_t block, int bh_count,
3087 sector_t block, blk_opf_t op_flags);
3089 sector_t block);
3095 extern void ext4_sb_breadahead_unmovable(struct super_block *sb, sector_t block);
3144 #define ext4_error_inode_block(inode, block, err, fmt, a...) \
3145 __ext4_error_inode((inode), __func__, __LINE__, (block), (err), \
3148 #define EXT4_ERROR_FILE(file, block, fmt, a...) \
3149 ext4_error_file((file), __func__, __LINE__, (block), (fmt), ## a)
3156 #define ext4_error_inode(inode, func, line, block, fmt, ...) \
3157 __ext4_error_inode(inode, func, line, block, 0, fmt, ##__VA_ARGS__)
3158 #define ext4_error_inode_err(inode, func, line, block, err, fmt, ...) \
3159 __ext4_error_inode((inode), (func), (line), (block), \
3161 #define ext4_error_file(file, func, line, block, fmt, ...) \
3162 __ext4_error_file(file, func, line, block, fmt, ##__VA_ARGS__)
3177 #define ext4_grp_locked_error(sb, grp, ino, block, fmt, ...) \
3178 __ext4_grp_locked_error(__func__, __LINE__, sb, grp, ino, block, \
3183 #define ext4_error_inode(inode, func, line, block, fmt, ...) \
3186 __ext4_error_inode(inode, "", 0, block, 0, " "); \
3188 #define ext4_error_inode_err(inode, func, line, block, err, fmt, ...) \
3191 __ext4_error_inode(inode, "", 0, block, err, " "); \
3193 #define ext4_error_file(file, func, line, block, fmt, ...) \
3196 __ext4_error_file(file, "", 0, block, " "); \
3225 #define ext4_grp_locked_error(sb, grp, ino, block, fmt, ...) \
3228 __ext4_grp_locked_error("", 0, sb, grp, ino, block, " "); \
3417 ext4_grpblk_t bb_first_free; /* first free block */
3431 ext4_grpblk_t bb_counters[]; /* Nr of free power-of-two-block
3434 * 5 free 8-block regions. */
3474 * access the block group locks has run into contention.
3575 struct inode *dir, ext4_lblk_t block,
3782 * Add new method to test whether block and inode bitmaps are properly
3783 * initialized. With uninit_bg reading the block from disk is not enough
3836 * to write out data in the block. In this case, we don't
3837 * have to read the block because we may read the old data