[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151118210615.GE22011@ZenIV.linux.org.uk>
Date: Wed, 18 Nov 2015 21:06:16 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Rajat Jain <rajatxjain@...il.com>
Cc: linux-fsdevel@...r.kernel.org,
Davide Libenzi <davidel@...ilserver.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: Anonymous inode cleanup?
On Wed, Nov 18, 2015 at 12:28:38PM -0800, Rajat Jain wrote:
> > _If_ you are returning them via a sucky API, the right sequence is
> > reserve the descriptor(s)
> > set the file(s) up
> > fill whatever structure you'll be using to report descriptors to
> > userland and copy it to userland memory
>
> If this step fails, what is the cleanup needed for "set the files up"
> anon_inode_getfile() step? is it fput()?
Yes.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists