mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
mm: swap: fix value of SWP_FAST
SWP_FAST was added to optimize swap usage of zram like fast swap devices. But its value is greater than SWAP_SCANNING which is used for refcounting swap map access. This results in swapoff of the device being blocked forever in a loop waiting for swap map accesses to complete, by checking the value of SWAP_SCANNING. Change-Id: Ibdc07e706c59b6f541708cdb0e28a02c15cfaade Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
parent
19d85ae5a5
commit
94f91186ca
1 changed files with 2 additions and 2 deletions
|
@ -152,9 +152,9 @@ enum {
|
|||
SWP_CONTINUED = (1 << 5), /* swap_map has count continuation */
|
||||
SWP_BLKDEV = (1 << 6), /* its a block device */
|
||||
SWP_FILE = (1 << 7), /* set after swap_activate success */
|
||||
SWP_FAST = (1 << 8), /* blkdev access is fast and cheap */
|
||||
/* add others here before... */
|
||||
SWP_SCANNING = (1 << 8), /* refcount in scan_swap_map */
|
||||
SWP_FAST = (1 << 9), /* blkdev access is fast and cheap */
|
||||
SWP_SCANNING = (1 << 9), /* refcount in scan_swap_map */
|
||||
};
|
||||
|
||||
#define SWAP_CLUSTER_MAX 32UL
|
||||
|
|
Loading…
Reference in a new issue