Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1272593
| From | Rajat Jain <rajatxjain@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Anonymous inode cleanup? |
| Date | 2015-11-18 22:30 +0100 |
| Message-ID | <qwisG-br-37@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <qugbE-2S1-5@gated-at.bofh.it> <qwhwC-7V2-15@gated-at.bofh.it> <qwi9j-8vZ-1@gated-at.bofh.it> <qwij0-7N-7@gated-at.bofh.it> <qwisG-br-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Thanks a lot! On Wed, Nov 18, 2015 at 1:24 PM, Al Viro <viro@zeniv.linux.org.uk> wrote: > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Anonymous inode cleanup? Rajat Jain <rajatxjain@gmail.com> - 2015-11-18 21:30 +0100
Re: Anonymous inode cleanup? Al Viro <viro@ZenIV.linux.org.uk> - 2015-11-18 22:10 +0100
Re: Anonymous inode cleanup? Rajat Jain <rajatxjain@gmail.com> - 2015-11-18 22:20 +0100
Re: Anonymous inode cleanup? Al Viro <viro@ZenIV.linux.org.uk> - 2015-11-18 22:30 +0100
Re: Anonymous inode cleanup? Rajat Jain <rajatxjain@gmail.com> - 2015-11-18 22:30 +0100
csiph-web