pstore/blk: Use the normal block device I/O path
authorKees Cook <keescook@chromium.org>
Mon, 14 Jun 2021 19:39:51 +0000 (12:39 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 16 Jun 2021 16:26:56 +0000 (09:26 -0700)
commit7bb9557b48fcabaa12750a8775352740def381a8
treec532fe9eb2599c988a907af4139689928eb9133c
parent2a03ddbde1e1268f15de6f15b09f305a33bff4ba
pstore/blk: Use the normal block device I/O path

Stop poking into block layer internals and just open the block device
file an use kernel_read and kernel_write on it. Note that this means
the transformation from name_to_dev_t can't be used anymore when
pstore_blk is loaded as a module: a full filesystem device path name
must be used instead. Additionally removes ":internal:" kerndoc link,
since no such documentation remains.

Co-developed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Documentation/admin-guide/pstore-blk.rst
fs/pstore/blk.c