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>
This commit is contained in:
Matthew Wilcox (Oracle)
2023-11-14 17:44:30 +09:00
committed by Andrew Morton
parent 319a12c046
commit af01ea5148
+2 -2
View File
@@ -98,8 +98,8 @@ int nilfs_gccache_submit_read_data(struct inode *inode, sector_t blkoff,
*out_bh = bh; *out_bh = bh;
failed: failed:
unlock_page(bh->b_page); folio_unlock(bh->b_folio);
put_page(bh->b_page); folio_put(bh->b_folio);
if (unlikely(err)) if (unlikely(err))
brelse(bh); brelse(bh);
return err; return err;