VFS: normal filesystems (and lustre): d_inode() annotations
[linux-2.6-block.git] / fs / ufs / dir.c
index 0ecc2cebed8ffec60bc9ccdb408519253d7fc3a6..1bfe8cabff0f660d107c6bc97446a0cceaf940eb 100644 (file)
@@ -311,7 +311,7 @@ found:
  */
 int ufs_add_link(struct dentry *dentry, struct inode *inode)
 {
-       struct inode *dir = dentry->d_parent->d_inode;
+       struct inode *dir = d_inode(dentry->d_parent);
        const unsigned char *name = dentry->d_name.name;
        int namelen = dentry->d_name.len;
        struct super_block *sb = dir->i_sb;