X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fllite_internal.h;h=c2b03616d3831452b1d8456f52c2b8b106af1e1b;hp=c839528e1a34a42559b7805bc3a075a3078cc9f7;hb=4a8f90cfdf8868d25f14b02214e51e7423d70160;hpb=1fee634f1ebfeccb1770951ca7b576f8b6e733a0 diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index c839528..c2b0361 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -1369,7 +1369,7 @@ extern ssize_t ll_direct_rw_pages(const struct lu_env *env, struct cl_io *io, static inline int ll_file_nolock(const struct file *file) { struct ll_file_data *fd = LUSTRE_FPRIVATE(file); - struct inode *inode = file->f_dentry->d_inode; + struct inode *inode = file->f_path.dentry->d_inode; LASSERT(fd != NULL); return ((fd->fd_flags & LL_FILE_IGNORE_LOCK) ||