projects
/
users
/
jedix
/
linux-maple.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22f8a9
)
kernel/fork: Update maple tree interface.
author
Liam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 27 Oct 2020 16:54:10 +0000
(12:54 -0400)
committer
Liam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:13:36 +0000
(15:13 -0400)
Start using the number of entries directly, and mas_destroy().
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
kernel/fork.c
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index 476acbf370a854de563f56aa08d85a2711aeee8e..5e4de4b860439540d4e8a01325d8dee1359636ad 100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-506,7
+506,7
@@
static __latent_entropy int dup_mmap(struct mm_struct *mm,
prev = NULL;
- retval = mas_entry_count(&mas, oldmm->map_count
* 2
);
+ retval = mas_entry_count(&mas, oldmm->map_count);
if (retval)
goto fail_nomem;
@@
-610,7
+610,7
@@
out:
mmap_write_unlock(mm);
flush_tlb_mm(oldmm);
mmap_write_unlock(oldmm);
- mas_
empty_alloc
(&mas);
+ mas_
destroy
(&mas);
dup_userfaultfd_complete(&uf);
fail_uprobe_end:
uprobe_end_dup_mmap();