]> www.infradead.org Git - users/willy/xarray.git/commit
ext4: remove dead check in __ext4_new_inode()
authorKemeng Shi <shikemeng@huaweicloud.com>
Tue, 20 Aug 2024 13:22:31 +0000 (21:22 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 4 Sep 2024 02:12:15 +0000 (22:12 -0400)
commitf7c69be505a5ec3df13b65cedb245343b2a5f751
tree6fdf40d29879070ec59c5590e5a1baa5a0854b4c
parentbb0a12c3439b10d88412fd3102df5b9a6e3cd6dc
ext4: remove dead check in __ext4_new_inode()

If we can't grab any inode, the prvious find_inode_bit() will set ino
to be >= EXT4_INODES_PER_GROUP(sb). So the check of need to repeat
in the same group is not needed.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link: https://patch.msgid.link/20240820132234.2759926-5-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ialloc.c