summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2023-11-28 14:48:06 +0100
committerMike Snitzer <snitzer@kernel.org>2023-11-29 15:47:55 -0500
commit41e05548fa6b069a2b895cf4c7bd9ad618b21e2f (patch)
tree8137d95e93703bce607d3e41805d8082f73b5b0b /drivers/md
parent38bc1ab135db87577695816b190e7d6d8ec75879 (diff)
downloadlwn-41e05548fa6b069a2b895cf4c7bd9ad618b21e2f.tar.gz
lwn-41e05548fa6b069a2b895cf4c7bd9ad618b21e2f.zip
dm-flakey: 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-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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-flakey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-flakey.c b/drivers/md/dm-flakey.c
index 120153e44ae0..f57fb821528d 100644
--- a/drivers/md/dm-flakey.c
+++ b/drivers/md/dm-flakey.c
@@ -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;