mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
switch ->get_link() to delayed_call, kill ->put_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
cd3417c8fc
commit
fceef393a5
43 changed files with 206 additions and 218 deletions
|
@ -675,7 +675,8 @@ out:
|
|||
}
|
||||
|
||||
static const char *ecryptfs_get_link(struct dentry *dentry,
|
||||
struct inode *inode, void **cookie)
|
||||
struct inode *inode,
|
||||
struct delayed_call *done)
|
||||
{
|
||||
size_t len;
|
||||
char *buf;
|
||||
|
@ -689,7 +690,8 @@ static const char *ecryptfs_get_link(struct dentry *dentry,
|
|||
fsstack_copy_attr_atime(d_inode(dentry),
|
||||
d_inode(ecryptfs_dentry_to_lower(dentry)));
|
||||
buf[len] = '\0';
|
||||
return *cookie = buf;
|
||||
set_delayed_call(done, kfree_link, buf);
|
||||
return buf;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1102,7 +1104,6 @@ out:
|
|||
const struct inode_operations ecryptfs_symlink_iops = {
|
||||
.readlink = generic_readlink,
|
||||
.get_link = ecryptfs_get_link,
|
||||
.put_link = kfree_put_link,
|
||||
.permission = ecryptfs_permission,
|
||||
.setattr = ecryptfs_setattr,
|
||||
.getattr = ecryptfs_getattr_link,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue