ext4: Fix goal inum check in the inode allocator

The goal inode is specificed by inode number which belongs
to [1; s_inodes_count].

Signed-off-by: Johann Lombardi <johann@sun.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

authored by Johann Lombardi and committed by Theodore Ts'o e6462869 5adfee9c

+1 -1
+1 -1
fs/ext4/ialloc.c
··· 833 833 if (!goal) 834 834 goal = sbi->s_inode_goal; 835 835 836 - if (goal && goal < le32_to_cpu(sbi->s_es->s_inodes_count)) { 836 + if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) { 837 837 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); 838 838 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); 839 839 ret2 = 0;