Skip to content

Commit b6250a0

Browse files
Matthew Wilcox (Oracle)Al Viro
authored andcommitted
ufs: Convert ufs_extend_tail() to take a folio
Pass bh->b_folio instead of bh->b_page. They're in a union, so no code change expected. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent d9036c4 commit b6250a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/ufs/inode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static u64 ufs_frag_map(struct inode *inode, unsigned offsets[4], int depth)
220220
*/
221221
static bool
222222
ufs_extend_tail(struct inode *inode, u64 writes_to,
223-
int *err, struct page *locked_page)
223+
int *err, struct folio *locked_folio)
224224
{
225225
struct ufs_inode_info *ufsi = UFS_I(inode);
226226
struct super_block *sb = inode->i_sb;
@@ -239,7 +239,7 @@ ufs_extend_tail(struct inode *inode, u64 writes_to,
239239
p = ufs_get_direct_data_ptr(uspi, ufsi, block);
240240
tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p),
241241
new_size - (lastfrag & uspi->s_fpbmask), err,
242-
locked_page);
242+
&locked_folio->page);
243243
return tmp != 0;
244244
}
245245

@@ -413,7 +413,7 @@ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buff
413413
unsigned tailfrags = lastfrag & uspi->s_fpbmask;
414414
if (tailfrags && fragment >= lastfrag) {
415415
if (!ufs_extend_tail(inode, fragment,
416-
&err, bh_result->b_page))
416+
&err, bh_result->b_folio))
417417
goto out;
418418
}
419419
}

0 commit comments

Comments
 (0)