diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-11-14 09:44:28 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-11 02:21:28 +0100 |
commit | 83d9638ded878d67633b2f82dcea606b8f116b96 (patch) | |
tree | 65381fb6bc4373e08630aad66d43b28557c5fd69 | |
parent | nilfs2: convert nilfs_page_mkwrite() to use a folio (diff) | |
download | linux-83d9638ded878d67633b2f82dcea606b8f116b96.tar.xz linux-83d9638ded878d67633b2f82dcea606b8f116b96.zip |
nilfs2: convert nilfs_mdt_create_block to use a folio
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>
-rw-r--r-- | fs/nilfs2/mdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c index 2e7952ac2f67..7e4dcff2c94b 100644 --- a/fs/nilfs2/mdt.c +++ b/fs/nilfs2/mdt.c @@ -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: |