]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dm-flakey: start allocating with MAX_ORDER
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 28 Nov 2023 13:48:06 +0000 (14:48 +0100)
committerMike Snitzer <snitzer@kernel.org>
Wed, 29 Nov 2023 20:47:55 +0000 (15:47 -0500)
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-flakey 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-flakey.c

index 120153e44ae0d374b011407f209968c4788c21d9..f57fb821528d7ef60639397772721bb5800f0c0d 100644 (file)
@@ -434,7 +434,7 @@ static struct bio *clone_bio(struct dm_target *ti, struct flakey_c *fc, struct b
 
        remaining_size = size;
 
-       order = MAX_ORDER - 1;
+       order = MAX_ORDER;
        while (remaining_size) {
                struct page *pages;
                unsigned size_to_add, to_copy;