aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/blockdev
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2014-04-07 15:38:15 -0700
committerZiyan <jaraidaniel@gmail.com>2016-01-05 18:21:41 +0100
commit151e54dbe7adac5c9cc138ca894132100cd8a272 (patch)
tree07e576fe9f5ddca8b87591ceee82930caa0342ba /Documentation/blockdev
parenta63cbbaddd8a0cd6de1e58e62b6fa72bc817dc27 (diff)
downloadkernel_samsung_tuna-151e54dbe7adac5c9cc138ca894132100cd8a272.zip
kernel_samsung_tuna-151e54dbe7adac5c9cc138ca894132100cd8a272.tar.gz
kernel_samsung_tuna-151e54dbe7adac5c9cc138ca894132100cd8a272.tar.bz2
zram: add set_max_streams knob
This patch allows to change max_comp_streams on initialised zcomp. Introduce zcomp set_max_streams() knob, zcomp_strm_multi_set_max_streams() and zcomp_strm_single_set_max_streams() callbacks to change streams limit for zcomp_strm_multi and zcomp_strm_single, accordingly. set_max_streams for single steam zcomp does nothing. If user has lowered the limit, then zcomp_strm_multi_set_max_streams() attempts to immediately free extra streams (as much as it can, depending on idle streams availability). Note, this patch does not allow to change stream 'policy' from single to multi stream (or vice versa) on already initialised compression backend. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Acked-by: Minchan Kim <minchan@kernel.org> Cc: Jerome Marchand <jmarchan@redhat.com> Cc: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/blockdev')
0 files changed, 0 insertions, 0 deletions