Whamcloud - gitweb
LU-8176 libcfs: Add file_dentry() & file_inode() wrapper
[fs/lustre-release.git] / lustre / llite / vvp_io.c
index 871d3a7..2f9ce64 100644 (file)
@@ -290,7 +290,7 @@ static int vvp_io_fault_iter_init(const struct lu_env *env,
        struct vvp_io *vio   = cl2vvp_io(env, ios);
        struct inode  *inode = vvp_object_inode(ios->cis_obj);
 
-       LASSERT(inode == vio->vui_fd->fd_file->f_path.dentry->d_inode);
+       LASSERT(inode == file_inode(vio->vui_fd->fd_file));
        vio->u.fault.ft_mtime = LTIME_S(inode->i_mtime);
 
        return 0;
@@ -424,7 +424,7 @@ static int vvp_mmap_locks(const struct lu_env *env,
 
                 down_read(&mm->mmap_sem);
                 while((vma = our_vma(mm, addr, count)) != NULL) {
-                       struct dentry *de = vma->vm_file->f_path.dentry;
+                       struct dentry *de = file_dentry(vma->vm_file);
                        struct inode *inode = de->d_inode;
                         int flags = CEF_MUST;