linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH] mm: make zbud znd zpool to depend on zswap
@ 2015-09-10 12:28 Sergey Senozhatsky
  2015-09-15  6:06 ` Dan Streetman
  0 siblings, 1 reply; 3+ messages in thread
From: Sergey Senozhatsky @ 2015-09-10 12:28 UTC (permalink / raw)
  To: Dan Streetman, Seth Jennings
  Cc: Andrew Morton, linux-mm, linux-kernel, Sergey Senozhatsky,
	Sergey Senozhatsky

There are no zbud and zpool users besides zswap so enabling
(and building) CONFIG_ZPOOL and CONFIG_ZBUD make sense only
when CONFIG_ZSWAP is enabled. In other words, make those
options to depend on CONFIG_ZSWAP.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
 mm/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/Kconfig b/mm/Kconfig
index 3455a8d..eb48422 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -563,6 +563,7 @@ config ZSWAP
 
 config ZPOOL
 	tristate "Common API for compressed memory storage"
+	depends on ZSWAP
 	default n
 	help
 	  Compressed memory storage API.  This allows using either zbud or
@@ -570,6 +571,7 @@ config ZPOOL
 
 config ZBUD
 	tristate "Low density storage for compressed pages"
+	depends on ZSWAP
 	default n
 	help
 	  A special purpose allocator for storing compressed pages.
-- 
2.5.1

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] mm: make zbud znd zpool to depend on zswap
  2015-09-10 12:28 [RFC][PATCH] mm: make zbud znd zpool to depend on zswap Sergey Senozhatsky
@ 2015-09-15  6:06 ` Dan Streetman
  2015-09-15  6:10   ` Sergey Senozhatsky
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Streetman @ 2015-09-15  6:06 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: Seth Jennings, Andrew Morton, Linux-MM, linux-kernel,
	Sergey Senozhatsky

On Thu, Sep 10, 2015 at 8:28 AM, Sergey Senozhatsky
<sergey.senozhatsky@gmail.com> wrote:
> There are no zbud and zpool users besides zswap so enabling
> (and building) CONFIG_ZPOOL and CONFIG_ZBUD make sense only
> when CONFIG_ZSWAP is enabled. In other words, make those
> options to depend on CONFIG_ZSWAP.

Let's wait on this until the patches to add zpool support to zram go
one way or the other.  If they don't make it in, I'm fine with this,
and even moving the zpool.h header into mm/ instead of include/linux/

>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
> ---
>  mm/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 3455a8d..eb48422 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -563,6 +563,7 @@ config ZSWAP
>
>  config ZPOOL
>         tristate "Common API for compressed memory storage"
> +       depends on ZSWAP
>         default n
>         help
>           Compressed memory storage API.  This allows using either zbud or
> @@ -570,6 +571,7 @@ config ZPOOL
>
>  config ZBUD
>         tristate "Low density storage for compressed pages"
> +       depends on ZSWAP
>         default n
>         help
>           A special purpose allocator for storing compressed pages.
> --
> 2.5.1
>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] mm: make zbud znd zpool to depend on zswap
  2015-09-15  6:06 ` Dan Streetman
@ 2015-09-15  6:10   ` Sergey Senozhatsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sergey Senozhatsky @ 2015-09-15  6:10 UTC (permalink / raw)
  To: Dan Streetman
  Cc: Sergey Senozhatsky, Seth Jennings, Andrew Morton, Linux-MM,
	linux-kernel, Sergey Senozhatsky

On (09/15/15 02:06), Dan Streetman wrote:
> > There are no zbud and zpool users besides zswap so enabling
> > (and building) CONFIG_ZPOOL and CONFIG_ZBUD make sense only
> > when CONFIG_ZSWAP is enabled. In other words, make those
> > options to depend on CONFIG_ZSWAP.
> 
> Let's wait on this until the patches to add zpool support to zram go
> one way or the other.  If they don't make it in, I'm fine with this,
> and even moving the zpool.h header into mm/ instead of include/linux/
> 

agree.

	-ss

> >
> > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
> > ---
> >  mm/Kconfig | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/mm/Kconfig b/mm/Kconfig
> > index 3455a8d..eb48422 100644
> > --- a/mm/Kconfig
> > +++ b/mm/Kconfig
> > @@ -563,6 +563,7 @@ config ZSWAP
> >
> >  config ZPOOL
> >         tristate "Common API for compressed memory storage"
> > +       depends on ZSWAP
> >         default n
> >         help
> >           Compressed memory storage API.  This allows using either zbud or
> > @@ -570,6 +571,7 @@ config ZPOOL
> >
> >  config ZBUD
> >         tristate "Low density storage for compressed pages"
> > +       depends on ZSWAP
> >         default n
> >         help
> >           A special purpose allocator for storing compressed pages.
> > --
> > 2.5.1
> >
> 

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-15  6:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 12:28 [RFC][PATCH] mm: make zbud znd zpool to depend on zswap Sergey Senozhatsky
2015-09-15  6:06 ` Dan Streetman
2015-09-15  6:10   ` Sergey Senozhatsky

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).