]> git.ipfire.org Git - thirdparty/linux.git/commit
dm-crypt: start allocating with MAX_ORDER
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 17 Nov 2023 17:38:33 +0000 (18:38 +0100)
committerMike Snitzer <snitzer@kernel.org>
Fri, 17 Nov 2023 19:41:15 +0000 (14:41 -0500)
commit13648e04a9b831b3dfa5cf3887dfa6cf8fe5fe69
tree285d33abb2fc2e3b0ab36967bc32748ba0ff62f9
parent28f07f2ab4b3a2714f1fefcc58ada4bcc195f806
dm-crypt: start allocating with MAX_ORDER

Commit 23baf831a32c ("mm, treewide: redefine MAX_ORDER sanely")
changed the meaning of MAX_ORDER from exclusive to inclusive. So, we
can allocate compound pages with up to 1 << MAX_ORDER pages.

Reflect this change in dm-crypt and start trying to allocate compound
pages with MAX_ORDER.

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