]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3265da402703f197f1e4d39518f15544f1ef16b0
treec532fe9eb2599c988a907af4139689928eb9133c
parent154f6c8e5ff5a1aef7ebf0de85c6d11b78785491
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