* Re: + proc-commit-to-genradix.patch added to -mm tree
[not found] <20181217205458.jBjXa%akpm@linux-foundation.org>
@ 2018-12-27 14:46 ` Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2018-12-27 14:46 UTC (permalink / raw)
To: akpm
Cc: linux-kernel, willy, vyasevich, viro, shli, sds, pshelar, paul,
nhorman, marcelo.leitner, eparis, dave.hansen, kent.overstreet
On Mon, Dec 17, 2018 at 12:54:58PM -0800, akpm@linux-foundation.org wrote:
> http://ozlabs.org/~akpm/mmots/broken-out/proc-commit-to-genradix.patch
> Subject: proc: commit to genradix
>
> The new generic radix trees have a simpler API and implementation, and no
> limitations on number of elements, so all flex_array users are being
> converted
> --- a/fs/proc/base.c~proc-commit-to-genradix
> +++ a/fs/proc/base.c
> @@ -2142,11 +2142,12 @@ proc_map_files_readdir(struct file *file
> 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);
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
I'll try to check performance after New Year.
^ permalink raw reply [flat|nested] only message in thread