ext4: move 'ix' sanity check to corrent position
authorGou Hao <gouhao@uniontech.com>
Wed, 6 Sep 2023 01:33:41 +0000 (09:33 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Oct 2023 02:32:15 +0000 (22:32 -0400)
commitaf90a8f4a09ec4a3de20142e37f37205d4687f28
tree1b819fa722cd9d4e44d54b07cf13f122c0212d2e
parent8b6b562121f1981315e76b6ae1f8a5cbbcf14bd7
ext4: move 'ix' sanity check to corrent position

Check 'ix' before it is used.

Fixes: 80e675f906db ("ext4: optimize memmmove lengths in extent/index insertions")
Signed-off-by: Gou Hao <gouhao@uniontech.com>
Link: https://lore.kernel.org/r/20230906013341.7199-1-gouhao@uniontech.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c