Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

Commit

Permalink
block: add base vnswap code for vbswap
Browse files Browse the repository at this point in the history
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
  • Loading branch information
arter97 authored and 0ctobot committed Mar 6, 2021
1 parent 338d3e7 commit e1519c0
Show file tree
Hide file tree
Showing 6 changed files with 1,432 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/block/Kconfig
Expand Up @@ -482,6 +482,8 @@ config BLK_DEV_RSXX
To compile this driver as a module, choose M here: the
module will be called rsxx.

source "drivers/block/vbswap/Kconfig"

endif # BLK_DEV

config VSERVICES_BLOCK_SERVER
Expand Down
1 change: 1 addition & 0 deletions drivers/block/Makefile
Expand Up @@ -37,6 +37,7 @@ obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX) += mtip32xx/

obj-$(CONFIG_BLK_DEV_RSXX) += rsxx/
obj-$(CONFIG_ZRAM) += zram/
obj-$(CONFIG_VBSWAP) += vbswap/

obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk.o
null_blk-objs := null_blk_main.o
Expand Down
4 changes: 4 additions & 0 deletions drivers/block/vbswap/Kconfig
@@ -0,0 +1,4 @@
config VBSWAP
tristate "Fake block device for swap based on vnswap"
depends on BLOCK && ZSWAP
default n
1 change: 1 addition & 0 deletions drivers/block/vbswap/Makefile
@@ -0,0 +1 @@
obj-$(CONFIG_VBSWAP) += vbswap.o

0 comments on commit e1519c0

Please sign in to comment.