|
@@ -528,7 +528,7 @@ static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec,
|
|
|
static inline void update_used_max(struct zram *zram,
|
|
static inline void update_used_max(struct zram *zram,
|
|
|
const unsigned long pages)
|
|
const unsigned long pages)
|
|
|
{
|
|
{
|
|
|
- int old_max, cur_max;
|
|
|
|
|
|
|
+ unsigned long old_max, cur_max;
|
|
|
|
|
|
|
|
old_max = atomic_long_read(&zram->stats.max_used_pages);
|
|
old_max = atomic_long_read(&zram->stats.max_used_pages);
|
|
|
|
|
|