UPSTREAM: zram: add interface to specif backing device
For writeback feature, user should set up backing device before the zram working. This patch enables the interface via /sys/block/zramX/backing_dev. Currently, it supports block device only but it could be enhanced for file as well. Link: http://lkml.kernel.org/r/1498459987-24562-5-git-send-email-minchan@kernel.org Signed-off-by:Minchan Kim <minchan@kernel.org> Cc: Juneho Choi <juno.choi@lge.com> Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org> (cherry picked from commit 013bf95a83ec760a2afc37fabd6bf13a9cdae205) Signed-off-by:
Peter Kalauskas <peskal@google.com> Bug: 112488418 Change-Id: I4bbf12ed7496d476bddd574e756bac5c8a838089
Loading
Please register or sign in to comment