]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
nilfs2: convert nilfs_mdt_create_block to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 14 Nov 2023 08:44:28 +0000 (17:44 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:28 +0000 (17:21 -0800)
Saves two calls to compound_head().

Link: https://lkml.kernel.org/r/20231114084436.2755-13-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>
fs/nilfs2/mdt.c

index 2e7952ac2f673e96a5fdc346c1693f375cd769fa..7e4dcff2c94bccf2af35f2401910300f645113e2 100644 (file)
@@ -97,8 +97,8 @@ static int nilfs_mdt_create_block(struct inode *inode, unsigned long block,
        }
 
  failed_bh:
-       unlock_page(bh->b_page);
-       put_page(bh->b_page);
+       folio_unlock(bh->b_folio);
+       folio_put(bh->b_folio);
        brelse(bh);
 
  failed_unlock: