diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index f2208337e5cb32e586f2416129ddc47acf1b2c66..28fb4c0c8a14e6dda6901f8aa60d5f1e546fede0 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -1814,7 +1814,7 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, * split it in half by count; each resulting block will have at least * half the space free. */ - if (i > 0) + if (i >= 0) split = count - move; else split = count/2;