]> err.no Git - linux-2.6/blobdiff - include/linux/swap.h
[PATCH] swap: scan_swap_map drop swap_device_lock
[linux-2.6] / include / linux / swap.h
index 93f0eca7f9160a3ab80a7ebf39c1e31e996b0b84..db3b5de7c92faef1ab2329e8b6765ea32c9145ea 100644 (file)
@@ -107,6 +107,8 @@ enum {
        SWP_USED        = (1 << 0),     /* is slot in swap_info[] used? */
        SWP_WRITEOK     = (1 << 1),     /* ok to write to this swap?    */
        SWP_ACTIVE      = (SWP_USED | SWP_WRITEOK),
+                                       /* add others here before... */
+       SWP_SCANNING    = (1 << 8),     /* refcount in scan_swap_map */
 };
 
 #define SWAP_CLUSTER_MAX 32