Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nilfs2: convert nilfs_btnode_submit_block to use a folio

Saves two calls to compound_head().

Link: https://lkml.kernel.org/r/20231114084436.2755-17-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>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
10c6cca9 d80cb777

+4 -4
+4 -4
fs/nilfs2/btnode.c
··· 75 75 { 76 76 struct buffer_head *bh; 77 77 struct inode *inode = btnc->host; 78 - struct page *page; 78 + struct folio *folio; 79 79 int err; 80 80 81 81 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); ··· 83 83 return -ENOMEM; 84 84 85 85 err = -EEXIST; /* internal code */ 86 - page = bh->b_page; 86 + folio = bh->b_folio; 87 87 88 88 if (buffer_uptodate(bh) || buffer_dirty(bh)) 89 89 goto found; ··· 130 130 *pbh = bh; 131 131 132 132 out_locked: 133 - unlock_page(page); 134 - put_page(page); 133 + folio_unlock(folio); 134 + folio_put(folio); 135 135 return err; 136 136 } 137 137