befs: Convert befs_symlink_read_folio() to use folio_end_read()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 30 May 2024 20:20:53 +0000 (21:20 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 31 May 2024 10:31:39 +0000 (12:31 +0200)
commit263cf578049708a115b3ca58e46b7e5d20763866
treea343aa16e58194728663cbb9e2b4ba9f5642b678
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
befs: Convert befs_symlink_read_folio() to use folio_end_read()

This is slightly more efficient than separate calls to
folio_mark_uptodate() and folio_unlock(), and it's easier to read.
Get rid of the call to folio_set_error() as nobody will check this flag.

Cc: Luis de Bethencourt <luisbg@kernel.org>
Cc: Salah Triki <salah.triki@gmail.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20240530202110.2653630-2-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/befs/linuxvfs.c