summaryrefslogtreecommitdiff
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorXin Yin <yinxin.x@bytedance.com>2022-01-10 11:51:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-08 18:35:19 +0100
commit3ecbe2f8eb27b3ff65d7d32f424cfca7b6dd6bc4 (patch)
tree39e19d6676bf9278fdaaf05a7d8f6cd4129c7e58 /fs/ext4/fast_commit.c
parent33fb59317cd2021c3f5b95ba57fdf7c43f864b68 (diff)
ext4: modify the logic of ext4_mb_new_blocks_simple
commit 31a074a0c62dc0d2bfb9b543142db4fe27f9e5eb upstream. For now in ext4_mb_new_blocks_simple, if we found a block which should be excluded then will switch to next group, this may probably cause 'group' run out of range. Change to check next block in the same group when get a block should be excluded. Also change the search range to EXT4_CLUSTERS_PER_GROUP and add error checking. Signed-off-by: Xin Yin <yinxin.x@bytedance.com> Reviewed-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com> Link: https://lore.kernel.org/r/20220110035141.1980-3-yinxin.x@bytedance.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions