]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/cifs/link.c
switch ->get_link() to delayed_call, kill ->put_link()
[mirror_ubuntu-zesty-kernel.git] / fs / cifs / link.c
index 6f2439b508b54aeb8df0fa5d32ce1743793a2f3c..062c2375549a87acf716957593a58f213a972e06 100644 (file)
@@ -627,7 +627,8 @@ cifs_hl_exit:
 }
 
 const char *
-cifs_get_link(struct dentry *direntry, struct inode *inode, void **cookie)
+cifs_get_link(struct dentry *direntry, struct inode *inode,
+             struct delayed_call *done)
 {
        int rc = -ENOMEM;
        unsigned int xid;
@@ -680,7 +681,8 @@ cifs_get_link(struct dentry *direntry, struct inode *inode, void **cookie)
                kfree(target_path);
                return ERR_PTR(rc);
        }
-       return *cookie = target_path;
+       set_delayed_call(done, kfree_link, target_path);
+       return target_path;
 }
 
 int