diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-29 15:58:39 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-30 13:01:03 -0500 |
commit | fceef393a538134f03b778c5d2519e670269342f (patch) | |
tree | cd43c9afdc07852d286965ad4d11772f6c275d1a /fs/xfs | |
parent | cd3417c8fc9504cc1afe944515f338aff9ec286b (diff) |
switch ->get_link() to delayed_call, kill ->put_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_iops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index f638fd58b5b3..06eafafe636e 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -417,7 +417,7 @@ STATIC const char * | |||
417 | xfs_vn_get_link( | 417 | xfs_vn_get_link( |
418 | struct dentry *dentry, | 418 | struct dentry *dentry, |
419 | struct inode *inode, | 419 | struct inode *inode, |
420 | void **cookie) | 420 | struct delayed_call *done) |
421 | { | 421 | { |
422 | char *link; | 422 | char *link; |
423 | int error = -ENOMEM; | 423 | int error = -ENOMEM; |
@@ -433,7 +433,8 @@ xfs_vn_get_link( | |||
433 | if (unlikely(error)) | 433 | if (unlikely(error)) |
434 | goto out_kfree; | 434 | goto out_kfree; |
435 | 435 | ||
436 | return *cookie = link; | 436 | set_delayed_call(done, kfree_link, link); |
437 | return link; | ||
437 | 438 | ||
438 | out_kfree: | 439 | out_kfree: |
439 | kfree(link); | 440 | kfree(link); |
@@ -1177,7 +1178,6 @@ static const struct inode_operations xfs_dir_ci_inode_operations = { | |||
1177 | static const struct inode_operations xfs_symlink_inode_operations = { | 1178 | static const struct inode_operations xfs_symlink_inode_operations = { |
1178 | .readlink = generic_readlink, | 1179 | .readlink = generic_readlink, |
1179 | .get_link = xfs_vn_get_link, | 1180 | .get_link = xfs_vn_get_link, |
1180 | .put_link = kfree_put_link, | ||
1181 | .getattr = xfs_vn_getattr, | 1181 | .getattr = xfs_vn_getattr, |
1182 | .setattr = xfs_vn_setattr, | 1182 | .setattr = xfs_vn_setattr, |
1183 | .setxattr = generic_setxattr, | 1183 | .setxattr = generic_setxattr, |