diff --git a/[refs] b/[refs] index f1ebac4add13..b7b1c5c85089 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2b152873469d2b0751e8b726df6415f05e37632e +refs/heads/master: f2da98739da4e20e907f8317d513868764002d31 diff --git a/trunk/drivers/staging/zram/zram_sysfs.c b/trunk/drivers/staging/zram/zram_sysfs.c index ad62db221b6f..a70cc010d18d 100644 --- a/trunk/drivers/staging/zram/zram_sysfs.c +++ b/trunk/drivers/staging/zram/zram_sysfs.c @@ -14,6 +14,7 @@ #include #include +#include #include "zram_drv.h" @@ -65,7 +66,7 @@ static ssize_t disksize_store(struct device *dev, if (ret) return ret; - zram->disksize &= PAGE_MASK; + zram->disksize = PAGE_ALIGN(zram->disksize); set_capacity(zram->disk, zram->disksize >> SECTOR_SHIFT); return len;