diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-11-14 09:44:30 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-11 02:21:29 +0100 |
commit | af01ea51488847f34b73c5dd811ede95ac027986 (patch) | |
tree | f54a790de0bbe6f537afc1cd09a009458a89ce1c /fs/nilfs2 | |
parent | nilfs2: convert nilfs_mdt_submit_block to use a folio (diff) | |
download | linux-af01ea51488847f34b73c5dd811ede95ac027986.tar.xz linux-af01ea51488847f34b73c5dd811ede95ac027986.zip |
nilfs2: convert nilfs_gccache_submit_read_data to use a folio
Saves two calls to compound_head().
Link: https://lkml.kernel.org/r/20231114084436.2755-15-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 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/gcinode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/gcinode.c b/fs/nilfs2/gcinode.c index 8beb2730929d..bf9a11d58817 100644 --- a/fs/nilfs2/gcinode.c +++ b/fs/nilfs2/gcinode.c @@ -98,8 +98,8 @@ int nilfs_gccache_submit_read_data(struct inode *inode, sector_t blkoff, *out_bh = bh; failed: - unlock_page(bh->b_page); - put_page(bh->b_page); + folio_unlock(bh->b_folio); + folio_put(bh->b_folio); if (unlikely(err)) brelse(bh); return err; |