]> git.baikalelectronics.ru Git - kernel.git/commit
freevxfs: Convert vxfs_immed_read_folio() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 29 Apr 2022 15:12:16 +0000 (11:12 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Aug 2022 16:34:03 +0000 (12:34 -0400)
commit8bbd36d9cc89a8809fe9430fac88de1a70dc3bd4
tree22a7ff4a42b65fa4e27f9f3ff7208f4ed11cd201
parentd16c35770891d22b092b65eb09655578c36c17d7
freevxfs: Convert vxfs_immed_read_folio() to use a folio

Reorganise the file to remove the forward declaration.
Use folios throughout vxfs_immed_read_folio().
Use memcpy_to_page() instead of an open-coded kmap()/kunmap().
Remove flush_dcache_page() as this is embedded in memcpy_to_page().
Use folio_pos() instead of opencoding it.
Handle multi-page folios.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/freevxfs/vxfs_immed.c