OSDN Git Service

hugetlbfs: lockdep annotate root inode properly
[uclinux-h8/linux.git] / fs / hugetlbfs / inode.c
index 28cf06e..001ef01 100644 (file)
@@ -485,6 +485,7 @@ static struct inode *hugetlbfs_get_root(struct super_block *sb,
                inode->i_fop = &simple_dir_operations;
                /* directory inodes start off with i_nlink == 2 (for "." entry) */
                inc_nlink(inode);
+               lockdep_annotate_inode_mutex_key(inode);
        }
        return inode;
 }