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 ceph_fill_inline_data() to take a folio
Convert the internals to folio APIs and pass a folio in from ceph_fill_inode(). The kmap_atomic()/memcpy() pair becomes memcpy_to_folio(), which also flushes the dcache, so drop the explicit flush from the folio creation path. When a locked folio is passed in, the callers flush after filling it, so the flush in memcpy_to_folio() is redundant there, but harmless. This removes the last caller of find_or_create_page() in ceph and saves six calls to compound_head(). The page_folio() call added in ceph_fill_inode() goes away once the locked page plumbing is converted. Remove extern from the function declaration while at it. 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
6068b68c82
commit
41049e89df
3 changed files with 26 additions and 30 deletions
Loading…
Add table
Add a link
Reference in a new issue