mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ceph: use a folio in the READ_INLINE path of ceph_read_iter()
The inline data is read into a scratch buffer that never enters the page cache, so allocate it with folio_alloc() instead of __page_cache_alloc(). This drops the cpuset page spreading that __page_cache_alloc() applies on NUMA systems, which only makes sense for page cache pages. The temporary buffer here is better off node local. The mismatched __free_page()/__free_pages() pair both become folio_put(). The __ceph_do_getattr() locked page plumbing will be converted in a later patch, so pass &folio->page for now. 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
303227111a
commit
6068b68c82
1 changed files with 10 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue