]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipc/shm: use VMA iterator instead of linked list
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 14 Apr 2022 06:07:20 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 11 May 2022 13:09:55 +0000 (09:09 -0400)
commit86cc65ea3bff10b886cf9bb448219e1af6007beb
tree0232ebe84987cde90acbf516b1bacd34e8d8c670
parent36613fe0552d23ddb38662c6d5328b3c38f0baf7
ipc/shm: use VMA iterator instead of linked list

The VMA iterator is faster than the linked llist, and it can be walked
even when VMAs are being removed from the address space, so there's no
need to keep track of 'next'.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
ipc/shm.c