projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git]
/
fs
/
xfs
/
xfs_ioctl.c
diff --git
a/fs/xfs/xfs_ioctl.c
b/fs/xfs/xfs_ioctl.c
index bf70a2affb05b0b736d27ca1ceebac68015e5f7c..ac4feae45eb308c39629f177c0b6620fae77fb69 100644
(file)
--- a/
fs/xfs/xfs_ioctl.c
+++ b/
fs/xfs/xfs_ioctl.c
@@
-287,7
+287,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;
}