nullb: support memory backed store
authorShaohua Li <shli@fb.com>
Mon, 14 Aug 2017 22:04:56 +0000 (15:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Aug 2017 14:54:06 +0000 (08:54 -0600)
commit5bcd0e0c79b513261172d1348f93d1bf00dffbdf
tree219a1c0deb9dbb2c1250b1f3a815b8e817829949
parent94bc02e30fb8d04429ecf91820abbea0eb5c4ee1
nullb: support memory backed store

This adds memory backed store in nullb.

User configure 'memory_backed' attribute for this. By default, nullb
disk doesn't use memory backed store.

Based on original patch from Kyungchan Koh

Signed-off-by: Kyungchan Koh <kkc6196@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c