diff options
| author | 2026-08-14 14:32:52 +0000 | |
|---|---|---|
| committer | 2026-10-05 09:46:39 -0400 | |
| commit | 00ba5f7320d0416a38fda4c7ab3382a2eaed996a (patch) | |
| tree | 64881827c2c13d87c4065e576fa30856171868ea /scripts/Makefile.thinlto | |
| parent | nfs: make nfs_page pin-aware (diff) | |
nfs: track number of pinned pages in nfs_page
Track the number of pinned pages in nfs_page to handle unpinning
correctly, ensuring that only primary requests perform the final
unpinning operation, preventing subrequests from incorrectly
performing unpinning on behalf of their parent requests.
Add wb_nr_pinned to struct nfs_page to store the count of pinned pages
owned by the request. Update request creation and cleanup helpers to
initialize and use wb_nr_pinned for primary requests. Use the
nfs_page_array_len() helper to calculate the number of pages spanned
by a request's offset and length.
Signed-off-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
