The following commit has been merged in the master branch: commit 8784992541997e2399515dc6270c59bfe7c72710 Author: Cheyenne Wills <cwi...@sinenomine.net> Date: Tue Aug 19 12:07:56 2025 -0600
Linux: only allow one-page folios for writepages Add a check to ensure that large folio support hasn't been inadvertently set on for the address space that is passed to writepages. This should only happen if OpenAFS explicitly enables large folio support. The current OpenAFS support for folios is folio-aware, but does not take advantage of large folios. In order to support large folios (a folio with multiple contiguous pages) a filesystem must opt-in by explicitly setting the min_order on a inode's address space during inode's creation/initialization (e.g. calling mapping_set_large_folios, mapping_set_folio_order_range, etc.). Add an osi_Assert at the beginning of afs_linux_writefolio_cb that checks to see if the folio is a large folio. Change-Id: Iff7f78be8edc8cdfaff770809aa7c8fb62851282 Reviewed-on: https://gerrit.openafs.org/16513 Tested-by: BuildBot <build...@rampaginggeek.com> Reviewed-by: Cheyenne Wills <cwi...@sinenomine.net> Reviewed-by: Andrew Deason <adea...@sinenomine.net> Reviewed-by: Michael Meffie <mmef...@sinenomine.net> Reviewed-by: Mark Vitale <mvit...@sinenomine.net> Reviewed-by: Benjamin Kaduk <ka...@mit.edu> src/afs/LINUX/osi_vnodeops.c | 6 ++++++ 1 file changed, 6 insertions(+) -- OpenAFS Master Repository _______________________________________________ OpenAFS-cvs mailing list OpenAFS-cvs@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-cvs