lkml.org 
[lkml]   [2015]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Anonymous inode cleanup?
On Wed, Nov 18, 2015 at 01:10:10PM -0800, Rajat Jain wrote:
> I see reference taken for the path and module in anon_inode_getfile()
>
> Don't I need to drop that, or would fput() do it for me?
>
> path_put(&path);

dput(dentry);
mntput(mnt);
in the very end of __fput()

> module_put(fops->owner);

fops_put(file->f_op);
slightly earlier in the same function.


\
 
 \ /
  Last update: 2015-11-18 22:41    [W:0.038 / U:1.416 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site