X-Git-Url: http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blobdiff_plain;f=fs%2Fsysfs%2Fsymlink.c;h=de402fa915f2778e010d20bfeca2c6ebc05f6ddd;hp=fae57c83a722f4e782a2651e7dc0b74a66dfee76;hb=cc314eef0128a807e50fa03baf2d0abc0647952c;hpb=e3a15db2415579d5136b9ba9b52fe27c66da8780 diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index fae57c8..de402fa 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c @@ -151,17 +151,17 @@ static int sysfs_getlink(struct dentry *dentry, char * path) } -static int sysfs_follow_link(struct dentry *dentry, struct nameidata *nd) +static void *sysfs_follow_link(struct dentry *dentry, struct nameidata *nd) { int error = -ENOMEM; unsigned long page = get_zeroed_page(GFP_KERNEL); if (page) error = sysfs_getlink(dentry, (char *) page); nd_set_link(nd, error ? ERR_PTR(error) : (char *)page); - return 0; + return NULL; } -static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd) +static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie) { char *page = nd_get_link(nd); if (!IS_ERR(page))