diff options
author | yangerkun <yangerkun@huawei.com> | 2021-06-09 10:55:45 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-06-24 17:29:13 +0300 |
commit | 0caaefbaf2a429c256c7469cb603ca8918e96fb0 (patch) | |
tree | eb7d0451ad1e3cfd048f5995d69a4858fa163580 /fs/ext4/extents.c | |
parent | d07621d9b9b8231187cc6e2121c927b3b8016789 (diff) | |
download | linux-0caaefbaf2a429c256c7469cb603ca8918e96fb0.tar.xz |
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 <yangerkun@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210609075545.1442160-1-yangerkun@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 1293de50c8d4..92ad64b89d9b 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -1309,6 +1309,7 @@ static int ext4_ext_grow_indepth(handle_t *handle, struct inode *inode, neh->eh_magic = EXT4_EXT_MAGIC; ext4_extent_block_csum_set(inode, neh); set_buffer_uptodate(bh); + set_buffer_verified(bh); unlock_buffer(bh); err = ext4_handle_dirty_metadata(handle, inode, bh); |