Re: [PATCH v1 00/10] vfs: getname/putname overhaul

Andi Kleen
2012-09-08T03:08:50Z

On Fri, Sep 07, 2012 at 08:54:18PM -0400, Jeff Layton wrote:
> On Fri, 07 Sep 2012 14:26:56 -0700
> Andi Kleen <andi@firstfloor.org> wrote:
>
> > Jeff Layton <jlayton@redhat.com> writes:
> >
> > > This patchset is a first pass at overhauling the getname/putname
> > > interface to use a struct. The idea here is to add a new getname_info
> > > struct that allow us to pass around some auxillary info along with
> > > the string that getname() returns.
> >
> > Couldn't you just use some of the free pointers in struct page?
> > (lru etc.)
> >
> > -Andi
> >
>
> We could do that if these were page allocations. They're not, however.
> __getname() does a PATH_MAX size allocation out of a slabcache. I get

Ok I suppose slab is faster. In this case it's better to track
separately I agree.

-Andi