Skip to content

Commit 41e0554

Browse files
Mikulas PatockaMike Snitzer
authored andcommitted
dm-flakey: start allocating with MAX_ORDER
Commit 23baf83 ("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 <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 38bc1ab commit 41e0554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-flakey.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ static struct bio *clone_bio(struct dm_target *ti, struct flakey_c *fc, struct b
434434

435435
remaining_size = size;
436436

437-
order = MAX_ORDER - 1;
437+
order = MAX_ORDER;
438438
while (remaining_size) {
439439
struct page *pages;
440440
unsigned size_to_add, to_copy;

0 commit comments

Comments
 (0)