zbud: allow up to PAGE_SIZE allocations
PATCH v3 1/1 zbud: allow up to PAGE_SIZE allocations
Quoted 16 lines · Vitaly Wool
From
e219a88f4cd68842e7e04e37461aba6e06555d6aMon Sep 17 00:00:00 2001
From: Vitaly Vul <[email protected]>
Date: Tue, 22 Sep 2015 14:07:01 +0200
Subject: [PATCH] zbud: allow up toPAGE_SIZEallocationsCurrently zbud is only capable of allocating not more than
PAGE_SIZE-ZHDR_SIZE_ALIGNED-CHUNK_SIZE. This is okay as long as only zswap is using it, but other users of zbud may (and likely will) want to allocate up toPAGE_SIZE. This patch addresses that by skipping the creation of zbud internal structure in the beginning of an allocated page. As a zbud page is no longer guaranteed to contain zbud header, the following changes have to be applied throughout the code:
*page->lruto be used for zbud page lists
*page->privateto hold 'under_reclaim' flag
Quoted 6 lines
page->privatewill also be used to indicate if this page contains a zbud header in the beginning or not ('headless' flag).This patch incorporates minor fixups after Seth's comments.
Signed-off-by Vitaly Wool <[email protected]>
In previous thread, I saw this patch is part of "support zbud into zram" and commented out several times but have been ignored.
So, what I can do is just
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>