Skip to content

Commit d26c332

Browse files
WeiXiong Liaokees
authored andcommitted
pstore/zone: Introduce common layer to manage storage zones
Implement a common set of APIs needed to support pstore storage zones, based on how ramoops is designed. This will be used by pstore/blk with the intention of migrating pstore/ram in the future. Signed-off-by: WeiXiong Liao <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Co-developed-by: Kees Cook <[email protected]> Signed-off-by: Kees Cook <[email protected]>
1 parent acf12c5 commit d26c332

File tree

4 files changed

+1039
-0
lines changed

4 files changed

+1039
-0
lines changed

fs/pstore/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,10 @@ config PSTORE_RAM
153153
"ramoops.ko".
154154

155155
For more information, see Documentation/admin-guide/ramoops.rst.
156+
157+
config PSTORE_ZONE
158+
tristate
159+
depends on PSTORE
160+
help
161+
The common layer for pstore/blk (and pstore/ram in the future)
162+
to manage storage in zones.

fs/pstore/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ pstore-$(CONFIG_PSTORE_PMSG) += pmsg.o
1212

1313
ramoops-objs += ram.o ram_core.o
1414
obj-$(CONFIG_PSTORE_RAM) += ramoops.o
15+
16+
pstore_zone-objs += zone.o
17+
obj-$(CONFIG_PSTORE_ZONE) += pstore_zone.o

0 commit comments

Comments
 (0)