Message ID | 20170302170657.GI17411@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Index: rhvgoyal-linux/fs/shiftfs.c =================================================================== --- rhvgoyal-linux.orig/fs/shiftfs.c 2017-02-28 11:07:04.360579594 -0500 +++ rhvgoyal-linux/fs/shiftfs.c 2017-03-02 11:59:17.484345405 -0500 @@ -179,12 +179,8 @@ static int shiftfs_readlink(struct dentr int flags) { struct dentry *real = dentry->d_fsdata; - const struct inode_operations *iop = real->d_inode->i_op; - if (iop->readlink) - return iop->readlink(real, data, flags); - - return -EINVAL; + return vfs_readlink(real, data, flags); } static const char *shiftfs_get_link(struct dentry *dentry, struct inode *inode,