Message ID | 1620087016-17857-15-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Update to OpenSFS tree as of May 3, 2021 | expand |
diff --git a/fs/lustre/llite/dcache.c b/fs/lustre/llite/dcache.c index f8b82d6..24af33e 100644 --- a/fs/lustre/llite/dcache.c +++ b/fs/lustre/llite/dcache.c @@ -253,7 +253,7 @@ static int ll_revalidate_dentry(struct dentry *dentry, * real symlinks. This will allow to open foreign symlink file/dir * for get[dir]stripe/unlock ioctl()s. */ - if (dentry->d_inode && dentry->d_inode->i_op->get_link) { + if (d_is_symlink(dentry)) { if (!S_ISLNK(dentry->d_inode->i_mode) && !(lookup_flags & LOOKUP_FOLLOW)) return 0;