projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
VFS: (Scripted) Convert S_ISLNK/DIR/REG(dentry->d_inode) to d_is_*(dentry)
[firefly-linux-kernel-4.4.55.git]
/
fs
/
xfs
/
xfs_ioctl.c
diff --git
a/fs/xfs/xfs_ioctl.c
b/fs/xfs/xfs_ioctl.c
index f7afb86c91487fc0a89c98578a28b3a1dfda83e0..fe3c0fe71e64f8b3702cbaa27666b71d480b1200 100644
(file)
--- a/
fs/xfs/xfs_ioctl.c
+++ b/
fs/xfs/xfs_ioctl.c
@@
-286,7
+286,7
@@
xfs_readlink_by_handle(
return PTR_ERR(dentry);
/* Restrict this handle operation to symlinks only. */
- if (!
S_ISLNK(dentry->d_inode->i_mode
)) {
+ if (!
d_is_symlink(dentry
)) {
error = -EINVAL;
goto out_dput;
}