]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/binfmt_elf.c
[PATCH] VFS: change struct file to use struct path
[net-next-2.6.git] / fs / binfmt_elf.c
index be5869d349991d69b9f1bafdc6258bc9f5fac6a6..c6dbb4a7ec78ef52ce08245624f4d32a33b403de 100644 (file)
@@ -1190,7 +1190,7 @@ static int maydump(struct vm_area_struct *vma)
 
        /* Dump shared memory only if mapped from an anonymous file. */
        if (vma->vm_flags & VM_SHARED)
-               return vma->vm_file->f_dentry->d_inode->i_nlink == 0;
+               return vma->vm_file->f_path.dentry->d_inode->i_nlink == 0;
 
        /* If it hasn't been written to, don't write it out */
        if (!vma->anon_vma)