From: Matthew Wilcox (Oracle) Date: Tue, 14 Nov 2023 08:44:36 +0000 (+0900) Subject: nilfs2: convert nilfs_btnode_abort_change_key to use a folio X-Git-Tag: v6.8-rc1~179^2~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f0eff2054aa6894fab0e75e48649388b6f4b242;p=thirdparty%2Fkernel%2Flinux.git nilfs2: convert nilfs_btnode_abort_change_key to use a folio Saves one call to compound_head(). Link: https://lkml.kernel.org/r/20231114084436.2755-21-konishi.ryusuke@gmail.com Signed-off-by: Matthew Wilcox (Oracle) Signed-off-by: Ryusuke Konishi Signed-off-by: Andrew Morton --- diff --git a/fs/nilfs2/btnode.c b/fs/nilfs2/btnode.c index fb1638765d549..1204dd06ead8c 100644 --- a/fs/nilfs2/btnode.c +++ b/fs/nilfs2/btnode.c @@ -284,7 +284,7 @@ void nilfs_btnode_abort_change_key(struct address_space *btnc, if (nbh == NULL) { /* blocksize == pagesize */ xa_erase_irq(&btnc->i_pages, newkey); - unlock_page(ctxt->bh->b_page); + folio_unlock(ctxt->bh->b_folio); } else { /* * When canceling a buffer that a prepare operation has