diff options
Diffstat (limited to 'fs/hppfs/hppfs.c')
-rw-r--r-- | fs/hppfs/hppfs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/hppfs/hppfs.c b/fs/hppfs/hppfs.c index fa2bd5366ecf..b8f24d3b04ee 100644 --- a/fs/hppfs/hppfs.c +++ b/fs/hppfs/hppfs.c | |||
@@ -642,20 +642,19 @@ static int hppfs_readlink(struct dentry *dentry, char __user *buffer, | |||
642 | buflen); | 642 | buflen); |
643 | } | 643 | } |
644 | 644 | ||
645 | static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd) | 645 | static const char *hppfs_follow_link(struct dentry *dentry, void **cookie, struct nameidata *nd) |
646 | { | 646 | { |
647 | struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; | 647 | struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; |
648 | 648 | ||
649 | return d_inode(proc_dentry)->i_op->follow_link(proc_dentry, nd); | 649 | return d_inode(proc_dentry)->i_op->follow_link(proc_dentry, cookie, nd); |
650 | } | 650 | } |
651 | 651 | ||
652 | static void hppfs_put_link(struct dentry *dentry, struct nameidata *nd, | 652 | static void hppfs_put_link(struct dentry *dentry, void *cookie) |
653 | void *cookie) | ||
654 | { | 653 | { |
655 | struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; | 654 | struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; |
656 | 655 | ||
657 | if (d_inode(proc_dentry)->i_op->put_link) | 656 | if (d_inode(proc_dentry)->i_op->put_link) |
658 | d_inode(proc_dentry)->i_op->put_link(proc_dentry, nd, cookie); | 657 | d_inode(proc_dentry)->i_op->put_link(proc_dentry, cookie); |
659 | } | 658 | } |
660 | 659 | ||
661 | static const struct inode_operations hppfs_dir_iops = { | 660 | static const struct inode_operations hppfs_dir_iops = { |