diff options
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 2cf18a2d5c72..1eaa6cb96cd0 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -443,7 +443,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent, | |||
443 | ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); | 443 | ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); |
444 | 444 | ||
445 | if (S_ISDIR(mode) && | 445 | if (S_ISDIR(mode) && |
446 | ((parent == sb->s_root->d_inode) || | 446 | ((parent == d_inode(sb->s_root)) || |
447 | (ext4_test_inode_flag(parent, EXT4_INODE_TOPDIR)))) { | 447 | (ext4_test_inode_flag(parent, EXT4_INODE_TOPDIR)))) { |
448 | int best_ndir = inodes_per_group; | 448 | int best_ndir = inodes_per_group; |
449 | int ret = -1; | 449 | int ret = -1; |