diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-07 11:19:14 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-11 08:13:13 -0400 |
commit | ecc087ff14352aed52b8e775b4511e7f9cfc64ec (patch) | |
tree | 46a1845f647b8d59e28c49be683949a179b2ecdd /fs/configfs | |
parent | 5f2c4179e129bdc47870a81a65d0aff85aa18293 (diff) |
new helper: free_page_put_link()
similar to kfree_put_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/configfs')
-rw-r--r-- | fs/configfs/symlink.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index bc464c26e00e..ec5c8325b503 100644 --- a/fs/configfs/symlink.c +++ b/fs/configfs/symlink.c | |||
@@ -296,15 +296,10 @@ static const char *configfs_follow_link(struct dentry *dentry, void **cookie) | |||
296 | return ERR_PTR(error); | 296 | return ERR_PTR(error); |
297 | } | 297 | } |
298 | 298 | ||
299 | static void configfs_put_link(struct inode *unused, void *cookie) | ||
300 | { | ||
301 | free_page((unsigned long)cookie); | ||
302 | } | ||
303 | |||
304 | const struct inode_operations configfs_symlink_inode_operations = { | 299 | const struct inode_operations configfs_symlink_inode_operations = { |
305 | .follow_link = configfs_follow_link, | 300 | .follow_link = configfs_follow_link, |
306 | .readlink = generic_readlink, | 301 | .readlink = generic_readlink, |
307 | .put_link = configfs_put_link, | 302 | .put_link = free_page_put_link, |
308 | .setattr = configfs_setattr, | 303 | .setattr = configfs_setattr, |
309 | }; | 304 | }; |
310 | 305 | ||