Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: cleanup vma_iter_bulk_alloc

commit d24062914837 ("fork: use __mt_dup() to duplicate maple tree in
dup_mmap()"), removed the only user and mas_expected_entries has been
removed, since commit e3852a1213ffc ("maple_tree: Drop bulk insert
support"). Also cleanup the mas_expected_entries in maple_tree.h.

No functional change.

Link: https://lkml.kernel.org/r/20251106110929.3522073-1-guanwentao@uniontech.com
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Cheng Nie <niecheng1@uniontech.com>
Cc: Guan Wentao <guanwentao@uniontech.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Jann Horn <jannh@google.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Wentao Guan and committed by
Andrew Morton
7db07870 241b3a09

-7
-1
include/linux/maple_tree.h
··· 528 528 void mas_pause(struct ma_state *mas); 529 529 void maple_tree_init(void); 530 530 void mas_destroy(struct ma_state *mas); 531 - int mas_expected_entries(struct ma_state *mas, unsigned long nr_entries); 532 531 533 532 void *mas_prev(struct ma_state *mas, unsigned long min); 534 533 void *mas_prev_range(struct ma_state *mas, unsigned long max);
-6
mm/vma.h
··· 561 561 return vmi->mas.last + 1; 562 562 } 563 563 564 - static inline int vma_iter_bulk_alloc(struct vma_iterator *vmi, 565 - unsigned long count) 566 - { 567 - return mas_expected_entries(&vmi->mas, count); 568 - } 569 - 570 564 static inline 571 565 struct vm_area_struct *vma_iter_prev_range(struct vma_iterator *vmi) 572 566 {