zram/zsmalloc promotion
Subsystems (6)
Minchan Kim
maintainercover zram/zsmalloc promotion
This patchset promotes zram/zsmalloc from staging.
Both are very clean and zram have been used by many embedded product for a long time.
It's time to go out of staging.
Greg, Jens is already OK and Konrad wanted to put zsmalloc into lib/ instead of mm/. I think lib/ is more proper than drivers/block/zram which is suggested by Nitin.
I don't know who should merge whose tree.
So I will add both Greg and Jens to To.
This patchset is based on next-20120926.
Minchan Kim (3):
zsmalloc: promote to lib/
zram: promote zram from staging
zram: select ZSMALLOC when ZRAM is configured
drivers/block/Kconfig | 1 + drivers/block/Makefile | 1 + drivers/block/zram/Kconfig | 26 + drivers/block/zram/Makefile | 3 + drivers/block/zram/zram.txt | 76 +++ drivers/block/zram/zram_drv.c | 785 ++++++++++++++++++++++ drivers/block/zram/zram_drv.h | 119 ++++ drivers/block/zram/zram_sysfs.c | 225 +++++++ drivers/staging/Kconfig | 4 - drivers/staging/Makefile | 2 - drivers/staging/zcache/zcache-main.c | 4 +- drivers/staging/zram/Kconfig | 25 - drivers/staging/zram/Makefile | 3 - drivers/staging/zram/zram.txt | 76 --- drivers/staging/zram/zram_drv.c | 785 ---------------------- drivers/staging/zram/zram_drv.h | 120 ---- drivers/staging/zram/zram_sysfs.c | 225 ------- drivers/staging/zsmalloc/Kconfig | 10 - drivers/staging/zsmalloc/Makefile | 3 - drivers/staging/zsmalloc/zsmalloc-main.c | 1064 ------------------------------ drivers/staging/zsmalloc/zsmalloc.h | 43 -- include/linux/zsmalloc.h | 43 ++ lib/Kconfig | 2 + lib/Makefile | 1 + lib/zsmalloc/Kconfig | 18 + lib/zsmalloc/Makefile | 1 + lib/zsmalloc/zsmalloc.c | 1064 ++++++++++++++++++++++++++++++ 27 files changed, 2367 insertions(+), 2362 deletions(-) create mode 100644 drivers/block/zram/Kconfig create mode 100644 drivers/block/zram/Makefile create mode 100644 drivers/block/zram/zram.txt create mode 100644 drivers/block/zram/zram_drv.c create mode 100644 drivers/block/zram/zram_drv.h create mode 100644 drivers/block/zram/zram_sysfs.c delete mode 100644 drivers/staging/zram/Kconfig delete mode 100644 drivers/staging/zram/Makefile delete mode 100644 drivers/staging/zram/zram.txt delete mode 100644 drivers/staging/zram/zram_drv.c delete mode 100644 drivers/staging/zram/zram_drv.h delete mode 100644 drivers/staging/zram/zram_sysfs.c delete mode 100644 drivers/staging/zsmalloc/Kconfig delete mode 100644 drivers/staging/zsmalloc/Makefile delete mode 100644 drivers/staging/zsmalloc/zsmalloc-main.c delete mode 100644 drivers/staging/zsmalloc/zsmalloc.h create mode 100644 include/linux/zsmalloc.h create mode 100644 lib/zsmalloc/Kconfig create mode 100644 lib/zsmalloc/Makefile create mode 100644 lib/zsmalloc/zsmalloc.c
Signature · 7 lines
1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Minchan Kim
maintainerPATCH 1/3 zsmalloc: promote to lib/
This patch promotes the slab-based zsmalloc memory allocator from the staging tree to lib/
zcache/zram depends on this allocator for storing compressed RAM pages in an efficient way under system wide memory pressure where high-order (greater than 0) page allocation are very likely to fail.
For more information on zsmalloc and its internals, read the documentation at the top of the zsmalloc.c file.
--- drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/zcache/zcache-main.c | 4 +- drivers/staging/zram/zram_drv.h | 3 +- drivers/staging/zsmalloc/Kconfig | 10 - drivers/staging/zsmalloc/Makefile | 3 - drivers/staging/zsmalloc/zsmalloc-main.c | 1064 ------------------------------ drivers/staging/zsmalloc/zsmalloc.h | 43 -- include/linux/zsmalloc.h | 43 ++ lib/Kconfig | 2 + lib/Makefile | 1 + lib/zsmalloc/Kconfig | 18 + lib/zsmalloc/Makefile | 1 + lib/zsmalloc/zsmalloc.c | 1064 ++++++++++++++++++++++++++++++ 14 files changed, 1132 insertions(+), 1127 deletions(-) delete mode 100644 drivers/staging/zsmalloc/Kconfig delete mode 100644 drivers/staging/zsmalloc/Makefile delete mode 100644 drivers/staging/zsmalloc/zsmalloc-main.c delete mode 100644 drivers/staging/zsmalloc/zsmalloc.h create mode 100644 include/linux/zsmalloc.h create mode 100644 lib/zsmalloc/Kconfig create mode 100644 lib/zsmalloc/Makefile create mode 100644 lib/zsmalloc/zsmalloc.c
drivers/staging/Kconfig +0 -2
@@ -78,8 +78,6 @@ source "drivers/staging/zram/Kconfig" source "drivers/staging/zcache/Kconfig" -source "drivers/staging/zsmalloc/Kconfig" - source "drivers/staging/wlags49_h2/Kconfig" source "drivers/staging/wlags49_h25/Kconfig"
drivers/staging/Makefile +0 -1
@@ -34,7 +34,6 @@ obj-$(CONFIG_DX_SEP) += sep/ obj-$(CONFIG_IIO) += iio/ obj-$(CONFIG_ZRAM) += zram/ obj-$(CONFIG_ZCACHE) += zcache/ -obj-$(CONFIG_ZSMALLOC) += zsmalloc/ obj-$(CONFIG_WLAGS49_H2) += wlags49_h2/ obj-$(CONFIG_WLAGS49_H25) += wlags49_h25/ obj-$(CONFIG_FB_SM7XX) += sm7xxfb/
drivers/staging/zcache/zcache-main.c +2 -2
@@ -32,9 +32,9 @@#include <linux/crypto.h> #include <linux/string.h> #include <linux/idr.h> -#include "tmem.h" +#include <linux/zsmalloc.h> -#include "../zsmalloc/zsmalloc.h" +#include "tmem.h" #ifdef CONFIG_CLEANCACHE #include <linux/cleancache.h>
drivers/staging/zram/zram_drv.h +1 -2
@@ -17,8 +17,7 @@#include <linux/spinlock.h> #include <linux/mutex.h> - -#include "../zsmalloc/zsmalloc.h" +#include <linux/zsmalloc.h> /* * Some arbitrary value. This is just to catch
drivers/staging/zsmalloc/Kconfig deleted +0 -10
@@ -1,10 +0,0 @@ -config ZSMALLOC - tristate "Memory allocator for compressed pages" - default n - help - zsmalloc is a slab-based memory allocator designed to store - compressed RAM pages. zsmalloc uses virtual memory mapping - in order to reduce fragmentation. However, this results in a - non-standard allocator interface where a handle, not a pointer, is - returned by an alloc(). This handle must be mapped in order to - access the allocated space.
drivers/staging/zsmalloc/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -zsmalloc-y := zsmalloc-main.o - -obj-$(CONFIG_ZSMALLOC) += zsmalloc.o
drivers/staging/zsmalloc/zsmalloc-main.c deleted +0 -1064
1,064 lines not on this page · raw message
drivers/staging/zsmalloc/zsmalloc.h deleted +0 -43
43 lines not on this page · raw message
include/linux/zsmalloc.h new file +43 -0
43 lines not on this page · raw message
lib/Kconfig +2 -0
@@ -216,6 +216,8 @@ config DECOMPRESS_LZO config GENERIC_ALLOCATOR boolean +source "lib/zsmalloc/Kconfig" + # # reed solomon support is select'ed if needed #
lib/Makefile +1 -0
@@ -64,6 +64,7 @@ obj-$(CONFIG_CRC7) += crc7.o obj-$(CONFIG_LIBCRC32C) += libcrc32c.o obj-$(CONFIG_CRC8) += crc8.o obj-$(CONFIG_GENERIC_ALLOCATOR) += genalloc.o +obj-$(CONFIG_ZSMALLOC) += zsmalloc/ obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/ obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
lib/zsmalloc/Kconfig new file +18 -0
@@ -0,0 +1,18 @@ +config ZSMALLOC + tristate "Memory allocator for compressed pages" + default n + help + zsmalloc is a slab-based memory allocator designed to store + compressed RAM pages. zsmalloc uses a memory pool that combines + single pages into higher order pages by linking them together + using the fields of the struct page. Allocations are then + mapped through copy buffers or VM mapping, in order to reduce + memory pool fragmentation and increase allocation success rate under + memory pressure. + + This results in a non-standard allocator interface where + a handle, not a pointer, is returned by the allocation function. + This handle must be mapped in order to access the allocated space. + + If unsure, say N. +
lib/zsmalloc/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_ZSMALLOC) += zsmalloc.o
lib/zsmalloc/zsmalloc.c new file +1064 -0
1,064 lines not on this page · raw message
Signature · 7 lines
1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Minchan Kim
maintainerPATCH 2/3 zram: promote zram from staging
In reply to Minchan KimIt's time to promote zram from staging because zram is in staging for a long time and is improved by many contributors so code is very clean. Most important issue, zram's dependency with x86 is solved by making zsmalloc portable. In addition, many embedded product uses zram in real practive so I think there is no reason to prevent promotion now.
--- drivers/block/Kconfig | 1 + drivers/block/Makefile | 1 + drivers/block/zram/Kconfig | 25 ++ drivers/block/zram/Makefile | 3 + drivers/block/zram/zram.txt | 76 ++++ drivers/block/zram/zram_drv.c | 785 +++++++++++++++++++++++++++++++++++++ drivers/block/zram/zram_drv.h | 119 ++++++ drivers/block/zram/zram_sysfs.c | 225 +++++++++++ drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/zram/Kconfig | 25 -- drivers/staging/zram/Makefile | 3 - drivers/staging/zram/zram.txt | 76 ---- drivers/staging/zram/zram_drv.c | 785 ------------------------------------- drivers/staging/zram/zram_drv.h | 119 ------ drivers/staging/zram/zram_sysfs.c | 225 ----------- 16 files changed, 1235 insertions(+), 1236 deletions(-) create mode 100644 drivers/block/zram/Kconfig create mode 100644 drivers/block/zram/Makefile create mode 100644 drivers/block/zram/zram.txt create mode 100644 drivers/block/zram/zram_drv.c create mode 100644 drivers/block/zram/zram_drv.h create mode 100644 drivers/block/zram/zram_sysfs.c delete mode 100644 drivers/staging/zram/Kconfig delete mode 100644 drivers/staging/zram/Makefile delete mode 100644 drivers/staging/zram/zram.txt delete mode 100644 drivers/staging/zram/zram_drv.c delete mode 100644 drivers/staging/zram/zram_drv.h delete mode 100644 drivers/staging/zram/zram_sysfs.c
drivers/block/Kconfig +1 -0
@@ -290,6 +290,7 @@ config BLK_DEV_CRYPTOLOOP cryptoloop device. source "drivers/block/drbd/Kconfig" +source "drivers/block/zram/Kconfig" config BLK_DEV_NBD tristate "Network block device support"
drivers/block/Makefile +1 -0
@@ -30,6 +30,7 @@ obj-$(CONFIG_BLK_DEV_UMEM) += umem.o obj-$(CONFIG_BLK_DEV_NBD) += nbd.o obj-$(CONFIG_BLK_DEV_CRYPTOLOOP) += cryptoloop.o obj-$(CONFIG_VIRTIO_BLK) += virtio_blk.o +obj-$(CONFIG_ZRAM) += zram/ obj-$(CONFIG_VIODASD) += viodasd.o obj-$(CONFIG_BLK_DEV_SX8) += sx8.o
drivers/block/zram/Kconfig new file +25 -0
@@ -0,0 +1,25 @@ +config ZRAM + tristate "Compressed RAM block device support" + depends on BLOCK && SYSFS && ZSMALLOC + select LZO_COMPRESS + select LZO_DECOMPRESS + default n + help + Creates virtual block devices called /dev/zramX (X = 0, 1, ...). + Pages written to these disks are compressed and stored in memory + itself. These disks allow very fast I/O and compression provides + good amounts of memory savings. + + It has several use cases, for example: /tmp storage, use as swap + disks and maybe many more. + + See zram.txt for more information. + Project home: http://compcache.googlecode.com/ + +config ZRAM_DEBUG + bool "Compressed RAM block device debug support" + depends on ZRAM + default n + help + This option adds additional debugging code to the compressed + RAM block device driver.
drivers/block/zram/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +zram-y := zram_drv.o zram_sysfs.o + +obj-$(CONFIG_ZRAM) += zram.o
drivers/block/zram/zram.txt new file +76 -0
76 lines not on this page · raw message
drivers/block/zram/zram_drv.c new file +785 -0
785 lines not on this page · raw message
drivers/block/zram/zram_drv.h new file +119 -0
119 lines not on this page · raw message
drivers/block/zram/zram_sysfs.c new file +225 -0
225 lines not on this page · raw message
drivers/staging/Kconfig +0 -2
@@ -74,8 +74,6 @@ source "drivers/staging/sep/Kconfig" source "drivers/staging/iio/Kconfig" -source "drivers/staging/zram/Kconfig" - source "drivers/staging/zcache/Kconfig" source "drivers/staging/wlags49_h2/Kconfig"
drivers/staging/Makefile +0 -1
@@ -32,7 +32,6 @@ obj-$(CONFIG_VME_BUS) += vme/ obj-$(CONFIG_IPACK_BUS) += ipack/ obj-$(CONFIG_DX_SEP) += sep/ obj-$(CONFIG_IIO) += iio/ -obj-$(CONFIG_ZRAM) += zram/ obj-$(CONFIG_ZCACHE) += zcache/ obj-$(CONFIG_WLAGS49_H2) += wlags49_h2/ obj-$(CONFIG_WLAGS49_H25) += wlags49_h25/
drivers/staging/zram/Kconfig deleted +0 -25
@@ -1,25 +0,0 @@ -config ZRAM - tristate "Compressed RAM block device support" - depends on BLOCK && SYSFS && ZSMALLOC - select LZO_COMPRESS - select LZO_DECOMPRESS - default n - help - Creates virtual block devices called /dev/zramX (X = 0, 1, ...). - Pages written to these disks are compressed and stored in memory - itself. These disks allow very fast I/O and compression provides - good amounts of memory savings. - - It has several use cases, for example: /tmp storage, use as swap - disks and maybe many more. - - See zram.txt for more information. - Project home: http://compcache.googlecode.com/ - -config ZRAM_DEBUG - bool "Compressed RAM block device debug support" - depends on ZRAM - default n - help - This option adds additional debugging code to the compressed - RAM block device driver.
drivers/staging/zram/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -zram-y := zram_drv.o zram_sysfs.o - -obj-$(CONFIG_ZRAM) += zram.o
drivers/staging/zram/zram.txt deleted +0 -76
76 lines not on this page · raw message
drivers/staging/zram/zram_drv.c deleted +0 -785
785 lines not on this page · raw message
drivers/staging/zram/zram_drv.h deleted +0 -119
119 lines not on this page · raw message
drivers/staging/zram/zram_sysfs.c deleted +0 -225
225 lines not on this page · raw message
Signature · 7 lines
1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Minchan Kim
maintainerPATCH 3/3 zram: select ZSMALLOC when ZRAM is configured
In reply to Minchan KimAt the monent, we can configure zram in driver/block once zsmalloc in /lib menu is configured firstly. It's not convenient.
User can configure zram in driver/block regardless of zsmalloc enabling by this patch.
--- drivers/block/zram/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/block/zram/Kconfig +2 -1
@@ -1,6 +1,7 @@ config ZRAM tristate "Compressed RAM block device support" - depends on BLOCK && SYSFS && ZSMALLOC + depends on BLOCK && SYSFS + select ZSMALLOC select LZO_COMPRESS select LZO_DECOMPRESS default n
Signature · 7 lines
1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 1/3] zsmalloc: promote to lib/
In reply to Minchan KimQuoted 28 lines · Minchan Kim
This patch promotes the slab-based zsmalloc memory allocator from the staging tree to
lib/zcache/zram depends on this allocator for storing compressed RAM pages in an efficient way under system wide memory pressure where high-order (greater than 0) page allocation are very likely to fail.
For more information on zsmalloc and its internals, read the documentation at the top of the
zsmalloc.cfile.Signed-off-by Minchan Kim <[email protected]>--- drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/zcache/zcache-main.c | 4 +- drivers/staging/zram/zram_drv.h | 3 +- drivers/staging/zsmalloc/Kconfig | 10 - drivers/staging/zsmalloc/Makefile | 3 - drivers/staging/zsmalloc/zsmalloc-main.c | 1064 ------------------------------ drivers/staging/zsmalloc/zsmalloc.h | 43 -- include/linux/zsmalloc.h | 43 ++ lib/Kconfig | 2 + lib/Makefile | 1 + lib/zsmalloc/Kconfig | 18 + lib/zsmalloc/Makefile | 1 + lib/zsmalloc/zsmalloc.c | 1064 ++++++++++++++++++++++++++++++ 14 files changed, 1132 insertions(+), 1127 deletions(-)
Quoted 8 lines
delete mode 100644 drivers/staging/zsmalloc/Kconfig delete mode 100644 drivers/staging/zsmalloc/Makefile delete mode 100644 drivers/staging/zsmalloc/zsmalloc-main.c delete mode 100644 drivers/staging/zsmalloc/zsmalloc.h create mode 100644 include/linux/zsmalloc.h create mode 100644 lib/zsmalloc/Kconfig create mode 100644 lib/zsmalloc/Makefile create mode 100644 lib/zsmalloc/zsmalloc.c
Since there's just one file here, why not just move to lib flatly without creating a new directory?
Thanks,
Wanlong Gao
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 1/3] zsmalloc: promote to lib/
In reply to Minchan KimQuoted 5 lines · Minchan Kim
lib/Kconfig | 2 + lib/Makefile | 1 + lib/zsmalloc/Kconfig | 18 + lib/zsmalloc/Makefile | 1 + lib/zsmalloc/zsmalloc.c | 1064 ++++++++++++++++++++++++++++++
What's wrong with mm/zsmalloc.c?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 2/3] zram: promote zram from staging
In reply to Minchan KimQuoted 10 lines · Minchan Kim
It's time to promote zram from staging because zram is in staging for a long time and is improved by many contributors so code is very clean. Most important issue, zram's dependency with x86 is solved by making zsmalloc portable. In addition, many embedded product uses zram in real practive so I think there is no reason to prevent promotion now.
Cc Seth Jennings <[email protected]>Cc Nitin Gupta <[email protected]>Signed-off-by Minchan Kim <[email protected]>
FWIW,
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Greg Kroah-Hartman
maintainerRe: [PATCH 3/3] zram: select ZSMALLOC when ZRAM is configured
In reply to Minchan KimQuoted 16 lines · Minchan Kim
At the monent, we can configure zram in driver/block once zsmalloc in /lib menu is configured firstly. It's not convenient.
User can configure zram in driver/block regardless of zsmalloc enabling by this patch.
Signed-off-by Minchan Kim <[email protected]>--- drivers/block/zram/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/block/zram/Kconfig +0
-0
drivers/block/zram/Kconfig line 4
Quoted 5 lines
drivers/block/zram/Kconfig +2
-1@@ -1,6 +1,7 @@ config ZRAM tristate "Compressed RAM block device support" - depends on BLOCK && SYSFS && ZSMALLOC + depends on BLOCK && SYSFS + select ZSMALLOC
As ZSMALLOC is dependant on CONFIG_STAGING, this isn't going to work at all, sorry.
If your code depends on staging code, we need to get the staging code out of staging first, before this code can be moved out.
So please work to get zsmalloc cleaned up and merged out first please, as it is, this patch series is not ok.
greg k-h
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 3/3] zram: select ZSMALLOC when ZRAM is configured
Quoted 12 lines · Greg Kroah-Hartman
Quoted 11 lines · Minchan Kim
At the monent, we can configure zram in driver/block once zsmalloc in /lib menu is configured firstly. It's not convenient.
User can configure zram in driver/block regardless of zsmalloc enabling by this patch.
Signed-off-by Minchan Kim <[email protected]>--- drivers/block/zram/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 13 lines
drivers/block/zram/Kconfig line 4
Quoted 10 lines
drivers/block/zram/Kconfig +2
-1@@ -1,6 +1,7 @@ config ZRAM tristate "Compressed RAM block device support" - depends on BLOCK && SYSFS && ZSMALLOC + depends on BLOCK && SYSFS + select ZSMALLOCAs ZSMALLOC is dependant on
CONFIG_STAGING, this isn't going to work at all, sorry.
Perhaps you missed [PATCH 1/3] zsmalloc: promote to lib/ ? The first patch in this series moves zsmalloc out of the staging directory, and removes the dependency on CONFIG_STAGING.
Signature · 7 lines
Calvin Walton <[email protected]> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Greg Kroah-Hartman
maintainerRe: [PATCH 3/3] zram: select ZSMALLOC when ZRAM is configured
Quoted 27 lines · Calvin Walton
Quoted 12 lines · Greg Kroah-Hartman
Quoted 11 lines · Minchan Kim
At the monent, we can configure zram in driver/block once zsmalloc in /lib menu is configured firstly. It's not convenient.
User can configure zram in driver/block regardless of zsmalloc enabling by this patch.
Signed-off-by Minchan Kim <[email protected]>--- drivers/block/zram/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Quoted 13 lines
drivers/block/zram/Kconfig line 4
Quoted 10 lines
drivers/block/zram/Kconfig +2
-1@@ -1,6 +1,7 @@ config ZRAM tristate "Compressed RAM block device support" - depends on BLOCK && SYSFS && ZSMALLOC + depends on BLOCK && SYSFS + select ZSMALLOCAs ZSMALLOC is dependant on
CONFIG_STAGING, this isn't going to work at all, sorry.
Quoted 3 lines
Perhaps you missed [PATCH 1/3] zsmalloc: promote to
lib/? The first patch in this series moves zsmalloc out of the staging directory, and removes the dependency onCONFIG_STAGING.
Ah, I did, thanks.
For 3.7, it's too late to be moving stuff out of staging to the "real" part of the kernel as 3.6 is about to be released.
Possibly, if everyone agrees with this, after 3.7 is out we can do this for 3.8, ok?
thanks,
greg k-h
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 1/3] zsmalloc: promote to lib/
In reply to Pekka Enberg2012/9/26 Pekka Enberg <[email protected]>:
Quoted 8 lines · Minchan Kim
Quoted 5 lines
lib/Kconfig | 2 + lib/Makefile | 1 + lib/zsmalloc/Kconfig | 18 + lib/zsmalloc/Makefile | 1 + lib/zsmalloc/zsmalloc.c | 1064 ++++++++++++++++++++++++++++++What's wrong with
mm/zsmalloc.c?
I think mm/ directory should only contain the code which is intended for global use such as the slab allocator, page reclaim code etc. zsmalloc is used by only one (or possibly two) drivers, so lib/ seems to be the right place.
Thanks,
Nitin
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Minchan Kim
maintainerRe: [PATCH 1/3] zsmalloc: promote to lib/
In reply to Pekka EnbergHi Pekka,
Quoted 8 lines · Pekka Enberg
Quoted 5 lines · Minchan Kim
lib/Kconfig | 2 + lib/Makefile | 1 + lib/zsmalloc/Kconfig | 18 + lib/zsmalloc/Makefile | 1 + lib/zsmalloc/zsmalloc.c | 1064 ++++++++++++++++++++++++++++++What's wrong with
mm/zsmalloc.c?
Why I put zsmalloc into under mm firstly is that Andrew had a concern about using strut page's some fields freely in zsmalloc so he wanted to maintain it in mm/ if I remember correctly.
So I and Nitin tried to ask the opinion to akpm several times (at least 5 and even I sent such patch a few month ago) but didn't get any reply from him so I guess he doesn't have any concern about that any more.
In point of view that it's an another slab-like allocator, it might be proper under mm but it's not popular as current mm's allocators(/SLUB/SLOB and page allocator).
Frankly speaking, I'm okay whether we put it to mm/ or lib/. But it seems Nitin and Konrad like lib/ and Andrew is silent. That's why I am biased into lib/ now.
If someone yell we should keep it to mm/ by logical claim, I can change my mind easily.
But I've never heard abut that until now.
Quoted 6 lines
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Signature · 8 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andrew Morton
maintainerRe: [PATCH 1/3] zsmalloc: promote to lib/
Quoted 4 lines · On Thu, 27 Sep 2012 10:39:12 +0900 Minchan Kim <[email protected]> wrote:
So I and Nitin tried to ask the opinion to akpm several times (at least 5 and even I sent such patch a few month ago) but didn't get any reply from him so I guess he doesn't have any concern about that any more.
I just haven't yet set aside a sufficiently large lump of time to work out what's going on here, sorry. Will try to get onto it next week.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Minchan Kim
maintainerRe: [PATCH 1/3] zsmalloc: promote to lib/
Quoted 9 lines · Andrew Morton
Quoted 4 lines · On Thu, 27 Sep 2012 10:39:12 +0900 Minchan Kim <[email protected]> wrote:
So I and Nitin tried to ask the opinion to akpm several times (at least 5 and even I sent such patch a few month ago) but didn't get any reply from him so I guess he doesn't have any concern about that any more.
I just haven't yet set aside a sufficiently large lump of time to work out what's going on here, sorry. Will try to get onto it next week.
Okay. Thanks Andrew.
I will wait your opinion.
Of course, promotion would be stuck by next week.
Quoted 6 lines
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Signature · 8 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Minchan Kim
maintainerRe: [PATCH 3/3] zram: select ZSMALLOC when ZRAM is configured
In reply to Greg Kroah-HartmanQuoted 32 lines · Greg Kroah-Hartman
Quoted 27 lines · Calvin Walton
Quoted 12 lines · Greg Kroah-Hartman
Quoted 11 lines · Minchan Kim
At the monent, we can configure zram in driver/block once zsmalloc in /lib menu is configured firstly. It's not convenient.
User can configure zram in driver/block regardless of zsmalloc enabling by this patch.
Signed-off-by Minchan Kim <[email protected]>--- drivers/block/zram/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Quoted 13 lines
drivers/block/zram/Kconfig line 4
Quoted 10 lines
drivers/block/zram/Kconfig +2
-1@@ -1,6 +1,7 @@ config ZRAM tristate "Compressed RAM block device support" - depends on BLOCK && SYSFS && ZSMALLOC + depends on BLOCK && SYSFS + select ZSMALLOCAs ZSMALLOC is dependant on
CONFIG_STAGING, this isn't going to work at all, sorry.Quoted 3 lines
Perhaps you missed [PATCH 1/3] zsmalloc: promote to
lib/? The first patch in this series moves zsmalloc out of the staging directory, and removes the dependency onCONFIG_STAGING.
Quoted 7 lines
Ah, I did, thanks.
For 3.7, it's too late to be moving stuff out of staging to the "real" part of the kernel as 3.6 is about to be released.
Possibly, if everyone agrees with this, after 3.7 is out we can do this for 3.8, ok?
For me, no problem.
I will send the patchset after listening akpm's opinion about zsmalloc's location. Maybe nextweek.
Thanks, Greg.
Quoted 10 lines
thanks,
greg k-h
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Signature · 8 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>