From: Mike Galbraith <efault@gmx.de>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Thomas Gleixner <tglx@linutronix.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-rt-users <linux-rt-users@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>
Subject: [patch-rt] drivers/zram: pass num_pages to zram_meta_init_table_locks()
Date: Thu, 19 Oct 2017 06:27:27 +0200 [thread overview]
Message-ID: <1508387247.12823.38.camel@gmx.de> (raw)
In-Reply-To: <20171017152952.6ab7qsgeqgisqci4@linutronix.de>
zram cleanup forgot to adjust passed argument when changing
zram_meta_init_table_locks() to expect page count instead
of disk size. Doing so fixes ltp inspired explosions.
Signed-off-by: Mike Galbraith <efault@gmx.de>
---
drivers/block/zram/zram_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -819,7 +819,7 @@ static bool zram_meta_alloc(struct zram
return false;
}
- zram_meta_init_table_locks(zram, disksize);
+ zram_meta_init_table_locks(zram, num_pages);
return true;
}
next prev parent reply other threads:[~2017-10-19 4:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-17 15:29 [ANNOUNCE] v4.13.7-rt1 Sebastian Andrzej Siewior
2017-10-18 0:47 ` Gene Heskett
2017-10-18 2:37 ` Ralf Mardorf
2017-10-19 4:27 ` Mike Galbraith [this message]
2017-10-27 14:59 ` [patch-rt] drivers/zram: pass num_pages to zram_meta_init_table_locks() Sebastian Andrzej Siewior
2017-10-27 16:39 ` [ANNOUNCE] v4.13.7-rt1 Sebastian Andrzej Siewior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1508387247.12823.38.camel@gmx.de \
--to=efault@gmx.de \
--cc=bigeasy@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).