mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ceph: convert page cleanup loop in writepages_finish() to folios
Convert the page cleanup loop in writepages_finish() to work on folios. Resolve the folio up front and unwrap any fscrypt bounce folio to its page cache folio, storing the page cache page back into the array. This removes a use of detach_page_private() and five calls to compound_head() per page, while adding one back via page_folio(). While at it, remove the BUG_ON() in the num_pages loop, as it cannot be triggered. No functional change. Signed-off-by: Tal Zussman <tz2294@columbia.edu> Reviewed-by: Alex Markuze <amarkuze@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
a6341000e5
commit
0917a08483
1 changed files with 11 additions and 12 deletions
Loading…
Add table
Add a link
Reference in a new issue