VFS: normal filesystems (and lustre): d_inode() annotations
[linux-2.6-block.git] / fs / ext2 / ialloc.c
index 6c14bb8322fabefa14cf6f59e51e179f66a8c71d..5c04a0ddea804e25b0548ef56272a33f48ea3318 100644 (file)
@@ -278,7 +278,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent)
        avefreeb = free_blocks / ngroups;
        ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter);
 
-       if ((parent == sb->s_root->d_inode) ||
+       if ((parent == d_inode(sb->s_root)) ||
            (EXT2_I(parent)->i_flags & EXT2_TOPDIR_FL)) {
                struct ext2_group_desc *best_desc = NULL;
                int best_ndir = inodes_per_group;