]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/block/zram/zram_drv.h
Merge tag 'module-implicit-v4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / drivers / block / zram / zram_drv.h
index 570c598f4ce9af9fca13f99f8c214cf0f24f874f..6dbe2df506bf0bda2a3b02ca63f3bc8a0831e088 100644 (file)
 
 #include "zcomp.h"
 
-/*
- * Some arbitrary value. This is just to catch
- * invalid value for num_devices module parameter.
- */
-static const unsigned max_num_devices = 32;
-
 /*-- Configurable parameters */
 
 /*
@@ -121,5 +115,9 @@ struct zram {
         */
        u64 disksize;   /* bytes */
        char compressor[10];
+       /*
+        * zram is claimed so open request will be failed
+        */
+       bool claim; /* Protected by bdev->bd_mutex */
 };
 #endif