X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fblock%2Fzram%2Fzram_drv.h;h=6dbe2df506bf0bda2a3b02ca63f3bc8a0831e088;hb=9d86b4128cdf791a3e7c21ac1cf4564a4fca36b6;hp=570c598f4ce9af9fca13f99f8c214cf0f24f874f;hpb=dde10068e1a4798fa44e68a5d08b5dfe3602cbba;p=karo-tx-linux.git diff --git a/drivers/block/zram/zram_drv.h b/drivers/block/zram/zram_drv.h index 570c598f4ce9..6dbe2df506bf 100644 --- a/drivers/block/zram/zram_drv.h +++ b/drivers/block/zram/zram_drv.h @@ -20,12 +20,6 @@ #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