]> 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>
Tue, 26 Apr 2022 14:36:39 +0000 (10:36 -0400)
commit57a19d7230473f8df8e602cd0d740966fab4c2ec
tree6212e7b91283b7913362df90a6ed4deb66b4012e
parenta88fae9a5fc2afb87503229fc6470e13a0557fdd
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