summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/btnode.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-11-14 09:44:36 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-11 02:21:30 +0100
commit2f0eff2054aa6894fab0e75e48649388b6f4b242 (patch)
tree167cb1237172c290ada5ae5a4003e1d48afaab4f /fs/nilfs2/btnode.c
parentnilfs2: convert nilfs_btnode_commit_change_key to use a folio (diff)
downloadlinux-2f0eff2054aa6894fab0e75e48649388b6f4b242.tar.xz
linux-2f0eff2054aa6894fab0e75e48649388b6f4b242.zip
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) <willy@infradead.org> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--fs/nilfs2/btnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/btnode.c b/fs/nilfs2/btnode.c
index fb1638765d54..1204dd06ead8 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