]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/nilfs2/dir.c
VFS: normal filesystems (and lustre): d_inode() annotations
[mirror_ubuntu-artful-kernel.git] / fs / nilfs2 / dir.c
index 197a63e9d10215b54e28179b7976e6c0b56b5384..0ee0bed3649baf1f8974c15e42916294ab55ff6c 100644 (file)
@@ -435,7 +435,7 @@ void nilfs_set_link(struct inode *dir, struct nilfs_dir_entry *de,
  */
 int nilfs_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;
        unsigned chunk_size = nilfs_chunk_size(dir);