[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180523221845.GB23040@kmo-pixel>
Date: Wed, 23 May 2018 18:18:45 -0400
From: Kent Overstreet <kent.overstreet@...il.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: linux-kernel@...r.kernel.org, viro@...iv.linux.org.uk,
akpm@...ux-foundation.org, gregkh@...uxfoundation.org,
linux-security-module@...r.kernel.org, selinux@...ho.nsa.gov,
dev@...nvswitch.org, shli@...nel.org, linux-raid@...r.kernel.org
Subject: Re: [PATCH 2/6] proc: commit to genradix
On Wed, May 23, 2018 at 04:28:23AM -0700, Matthew Wilcox wrote:
> On Tue, May 22, 2018 at 09:18:17PM -0400, Kent Overstreet wrote:
> > @@ -2140,11 +2140,12 @@ proc_map_files_readdir(struct file *file, struct dir_context *ctx)
> > struct task_struct *task;
> > struct mm_struct *mm;
> > unsigned long nr_files, pos, i;
> > - struct flex_array *fa = NULL;
> > - struct map_files_info info;
> > + GENRADIX(struct map_files_info) fa;
> > struct map_files_info *p;
> > int ret;
> >
> > + genradix_init(&fa);
>
> Could we have a DEFINE_GENRADIX(type, name) which initialises the tree?
Already exists. I kind of prefer not to use it when I don't need to though, and
stick to things that look more like normal declarations instead.
Powered by blists - more mailing lists