Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hbirth
Copy link
Collaborator

@hbirth hbirth commented Sep 11, 2025

No description provided.

Matthew Wilcox (Oracle) and others added 2 commits September 11, 2025 17:10
The writepage operation is deprecated as it leads to worse performance
under high memory pressure due to folios being written out in LRU order
rather than sequentially within a file.  Use filemap_migrate_folio() to
support dirty folio migration instead of writepage.

Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
When writing back pages while using writeback caching the code did a copy of data into
temporary pages to avoid a deadlock in reclaiming of memory.

This is an adaptation and backport of a patch by Joanne Koong [email protected].

Since we use pinned memory with io_uring we don't need the temporary copies
and we don't use the AS_WRITEBACK_MAY_DEADLOCK_ON_RECLAIM flag in the pagemap.

Link: https://www.spinics.net/lists/linux-mm/msg407405.html
Signed-off-by: Horst Birthelmer <[email protected]>
@hbirth hbirth requested a review from bsbernd September 11, 2025 17:55
@bsbernd bsbernd merged commit 8d8fbda into DDNStorage:redfs-ubuntu-noble-6.8.0-58.60 Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants