nilfs2-convert-nilfs_btnode_commit_change_key-to-use-a-folio.patch removed from -mm tree
The quilt patch titled
Subject: nilfs2: convert nilfs_btnode_commit_change_key to use a folio
has been removed from the -mm tree. Its filename was
nilfs2-convert-nilfs_btnode_commit_change_key-to-use-a-folio.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: nilfs2: convert nilfs_btnode_commit_change_key to use a folio
Date: Tue, 14 Nov 2023 17:44:35 +0900
Saves one call to compound_head().
---
fs/nilfs2/btnode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
fs/nilfs2/btnode.c renamed from fs/nilfs2/btnode.c~nilfs2-convert-nilfs_btnode_commit_change_key-to-use-a-folio +6 -6
@@ -238,15 +238,15 @@ void nilfs_btnode_commit_change_key(stru {struct buffer_head *obh = ctxt->bh, *nbh = ctxt->newbh;__u64 oldkey = ctxt->oldkey, newkey = ctxt->newkey; -struct page *opage; +struct folio *ofolio;if (oldkey == newkey)return ;if (nbh ==NULL ) {/* blocksize == pagesize */ - opage = obh->b_page; -if (unlikely (oldkey != opage->index)) -NILFS_PAGE_BUG (opage, + ofolio = obh->b_folio; +if (unlikely (oldkey != ofolio->index)) +NILFS_PAGE_BUG (&ofolio->page,"invalid oldkey %lld (newkey=%lld)" , (unsigned long long )oldkey, (unsigned long long )newkey);
@@ -257,8 +257,8 @@ void nilfs_btnode_commit_change_key(stru__xa_set_mark (&btnc->i_pages, newkey,PAGECACHE_TAG_DIRTY );xa_unlock_irq (&btnc->i_pages); - opage->index = obh->b_blocknr = newkey; -unlock_page (opage); + ofolio->index = obh->b_blocknr = newkey; +folio_unlock (ofolio); }else {nilfs_copy_buffer (nbh, obh);mark_buffer_dirty (nbh);
_
Patches currently in -mm which might be from [email protected] are
buffer-return-bool-from-grow_dev_folio.patch buffer-calculate-block-number-inside-folio_init_buffers.patch buffer-fix-grow_buffers-for-block-size-page_size.patch buffer-cast-block-to-loff_t-before-shifting-it.patch buffer-fix-various-functions-for-block-size-page_size.patch buffer-handle-large-folios-in-__block_write_begin_int.patch buffer-fix-more-functions-for-block-size-page_size.patch