Skip to content

Commit 0caaefb

Browse files
yangerkuntytso
authored andcommitted
ext4: no need to verify new add extent block
ext4_ext_grow_indepth will add a new extent block which has init the expected content. We can mark this buffer as verified so to stop a useless check in __read_extent_tree_block. Signed-off-by: yangerkun <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent d07621d commit 0caaefb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ext4/extents.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ static int ext4_ext_grow_indepth(handle_t *handle, struct inode *inode,
13091309
neh->eh_magic = EXT4_EXT_MAGIC;
13101310
ext4_extent_block_csum_set(inode, neh);
13111311
set_buffer_uptodate(bh);
1312+
set_buffer_verified(bh);
13121313
unlock_buffer(bh);
13131314

13141315
err = ext4_handle_dirty_metadata(handle, inode, bh);

0 commit comments

Comments
 (0)