aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-03-05 20:47:30 +0000
committerChristian Brauner <brauner@kernel.org>2025-03-06 09:26:06 +0100
commit6420f17963f2a898407c19ee16a8e71b958125d5 (patch)
treea4f58f3ac4252a6a20ffc03e51024de2a2f96445 /scripts/generate_rust_analyzer.py
parentorangefs: Convert orangefs_writepage_locked() to take a folio (diff)
downloadwireguard-linux-6420f17963f2a898407c19ee16a8e71b958125d5.tar.xz
wireguard-linux-6420f17963f2a898407c19ee16a8e71b958125d5.zip
orangefs: Pass mapping to orangefs_writepages_work()
Remove two accesses to page->mapping by passing the mapping from orangefs_writepages() to orangefs_writepages_callback() and then orangefs_writepages_work(). That makes it obvious that all folios come from the same mapping, so we can hoist the call to mapping_set_error() outside the loop. While I'm here, switch from write_cache_pages() to writeback_iter() which removes an indirect function call. Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org> Link: https://lore.kernel.org/r/20250305204734.1475264-7-willy@infradead.org Tested-by: Mike Marshall <hubcap@omnibond.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions