zram: Lower disksize value to 2GB

Change-Id: I0641df2b3bba4b5809c21f020b47ed55c8b7d405
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Richard Raya 2025-02-08 21:04:10 -03:00
parent c6f06373e4
commit 11be2baf36

View File

@ -1855,7 +1855,7 @@ static ssize_t disksize_store(struct device *dev,
struct zram *zram = dev_to_zram(dev); struct zram *zram = dev_to_zram(dev);
int err; int err;
disksize = (u64)SZ_1G * 4; disksize = (u64)SZ_1G * 2;
down_write(&zram->init_lock); down_write(&zram->init_lock);
if (init_done(zram)) { if (init_done(zram)) {