OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-311-g8784992
Gerrit Code Review
gerrit@openafs.org
Thu, 21 Aug 2025 12:46:27 -0400
The following commit has been merged in the master branch:
commit 8784992541997e2399515dc6270c59bfe7c72710
Author: Cheyenne Wills <cwills@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 <buildbot@rampaginggeek.com>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/LINUX/osi_vnodeops.c | 6 ++++++
1 file changed, 6 insertions(+)
--
OpenAFS Master Repository