]> git.baikalelectronics.ru Git - kernel.git/commit
pstore/blk: Include zone in pstore_device_info
authorKees Cook <keescook@chromium.org>
Tue, 15 Jun 2021 17:19:13 +0000 (10:19 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 17 Jun 2021 04:09:31 +0000 (21:09 -0700)
commitdb748da8b323575e625d23c9e49b01571008a836
tree325a1e03d905c0372065c86152a3a914b744a914
parentcd43e55309d268b031e234b8a24db3bbe9498ae4
pstore/blk: Include zone in pstore_device_info

Information was redundant between struct pstore_zone_info and struct
pstore_device_info. Use struct pstore_zone_info, with member name "zone".

Additionally untangle the logic for the "best effort" block device
instance.

Signed-off-by: Kees Cook <keescook@chromium.org>
Fixed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/lkml/20210617005424.182305-1-pulehui@huawei.com
drivers/mtd/mtdpstore.c
fs/pstore/blk.c
include/linux/pstore_blk.h