dm crypt: allocate compound pages if possible
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 1 May 2023 13:19:17 +0000 (09:19 -0400)
committerMike Snitzer <snitzer@kernel.org>
Fri, 16 Jun 2023 22:24:13 +0000 (18:24 -0400)
commit5054e778fcd9cd29ddaa8109077cd235527e4f94
tree9294944153f448f495b966ea80f193274a507ed1
parent245165658e1c9f95c0fecfe02b9b1ebd30a1198a
dm crypt: allocate compound pages if possible

It was reported that allocating pages for the write buffer in dm-crypt
causes measurable overhead [1].

Change dm-crypt to allocate compound pages if they are available. If
not, fall back to the mempool.

[1] https://listman.redhat.com/archives/dm-devel/2023-February/053284.html

Suggested-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-crypt.c