]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
squashfs: convert squashfs_symlink_read_folio to use folio APIs
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 20 Apr 2024 02:50:17 +0000 (03:50 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 8 May 2024 15:41:28 +0000 (08:41 -0700)
commit675f02e5e65651553c945a464e4f7630859f2032
tree61e495f4b427af2b29d956a2d7206664e5438823
parent40eea5abbb9ccae6df55dfd94c3c85c023e2521b
squashfs: convert squashfs_symlink_read_folio to use folio APIs

Remove use of page APIs, return the errno instead of 0, switch from
kmap_atomic to kmap_local and use folio_end_read() to unify the two exit
paths.

Link: https://lkml.kernel.org/r/20240420025029.2166544-23-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Phillip Lougher <phillip@squashfs.org.uk>
Reviewed-by: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/squashfs/symlink.c