OSDN Git Service

fs: implement kernel_read using __kernel_read
authorChristoph Hellwig <hch@lst.de>
Fri, 8 May 2020 07:00:28 +0000 (09:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 06:27:57 +0000 (08:27 +0200)
commit6209dd9132e8ea5545cffc84483841e88ea8cc5b
tree5b9b51d6d71f383638e0a3ffb25911b24367f639
parenta1f9b1c0439db47ea10418b8ee7092a0d970cc2d
fs: implement kernel_read using __kernel_read

Consolidate the two in-kernel read helpers to make upcoming changes
easier.  The only difference are the missing call to rw_verify_area
in kernel_read, and an access_ok check that doesn't make sense for
kernel buffers to start with.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/read_write.c