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
index f7afb86c91487fc0a89c98578a28b3a1dfda83e0..fe3c0fe71e64f8b3702cbaa27666b71d480b1200 100644 (file)
@@ -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;
        }