mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
mm: cleanup vma_iter_bulk_alloc
commitd240629148("fork: use __mt_dup() to duplicate maple tree in dup_mmap()"), removed the only user and mas_expected_entries has been removed, since commite3852a1213("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>
This commit is contained in:
committed by
Andrew Morton
parent
241b3a0963
commit
7db0787000
@@ -528,7 +528,6 @@ bool mas_nomem(struct ma_state *mas, gfp_t gfp);
|
||||
void mas_pause(struct ma_state *mas);
|
||||
void maple_tree_init(void);
|
||||
void mas_destroy(struct ma_state *mas);
|
||||
int mas_expected_entries(struct ma_state *mas, unsigned long nr_entries);
|
||||
|
||||
void *mas_prev(struct ma_state *mas, unsigned long min);
|
||||
void *mas_prev_range(struct ma_state *mas, unsigned long max);
|
||||
|
||||
6
mm/vma.h
6
mm/vma.h
@@ -561,12 +561,6 @@ static inline unsigned long vma_iter_end(struct vma_iterator *vmi)
|
||||
return vmi->mas.last + 1;
|
||||
}
|
||||
|
||||
static inline int vma_iter_bulk_alloc(struct vma_iterator *vmi,
|
||||
unsigned long count)
|
||||
{
|
||||
return mas_expected_entries(&vmi->mas, count);
|
||||
}
|
||||
|
||||
static inline
|
||||
struct vm_area_struct *vma_iter_prev_range(struct vma_iterator *vmi)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user