Skip to contentSkip to conversation

+ proc-commit-to-genradix.patch added to -mm tree

DISCUSSION Alexey Dobriyan 1 participant 1 message Dec 27, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20181217205458.jBjXa%[email protected]

Alexey Dobriyan

author Reviewed-by
#1 lore raw
Quoted 10 lines · On Mon, Dec 17, 2018 at 12:54:58PM -0800, [email protected] 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

fs/proc/base.c proc_map_files_readdir(struct file *file · line 2149

Quoted 10 lines
fs/proc/base.c renamed from fs/proc/base.c~proc-commit-to-genradix +2 -2
@@ -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);

I'll try to check performance after New Year.