Re: [PATCH] mm: zswap: add runtime enable/disable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 23, 2013 at 07:25:29AM +0800, Wanpeng Li wrote:
> On Mon, Jul 22, 2013 at 02:34:02PM -0500, Seth Jennings wrote:
> >@@ -612,7 +612,7 @@ static int zswap_frontswap_store(unsigned type, pgoff_t offset,
> > 	u8 *src, *dst;
> > 	struct zswap_header *zhdr;
> >
> >-	if (!tree) {
> >+	if (!zswap_enabled || !tree) {
> 
> If this check should be added to all hooks in zswap?

No.  We want to continue to allow loads and invalidates since zswap will
still have pages stored it in.  It just won't accept any new pages.

Seth

> 
> > 		ret = -ENODEV;
> > 		goto reject;
> > 	}

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]