diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-10-05 20:02:06 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-10-18 23:35:31 +0200 |
commit | 24a87a0adb2febe62b6cf3e0932a23d99931906f (patch) | |
tree | a0077a7c3d6f79bbe70861582bc3c814aabe972e /fs/ufs/inode.c | |
parent | ufs: Convert ufs_extend_tail() to take a folio (diff) | |
download | linux-24a87a0adb2febe62b6cf3e0932a23d99931906f.tar.xz linux-24a87a0adb2febe62b6cf3e0932a23d99931906f.zip |
ufs: Convert ufs_inode_getfrag() 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) <willy@infradead.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/inode.c')
-rw-r--r-- | fs/ufs/inode.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 1d3eb485df41..30e5d695d74d 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -252,10 +252,9 @@ ufs_extend_tail(struct inode *inode, u64 writes_to, * @new: we set it if we allocate new block * @locked_page: for ufs_new_fragments() */ -static u64 -ufs_inode_getfrag(struct inode *inode, unsigned index, +static u64 ufs_inode_getfrag(struct inode *inode, unsigned index, sector_t new_fragment, int *err, - int *new, struct page *locked_page) + int *new, struct folio *locked_folio) { struct ufs_inode_info *ufsi = UFS_I(inode); struct super_block *sb = inode->i_sb; @@ -283,7 +282,7 @@ ufs_inode_getfrag(struct inode *inode, unsigned index, goal += uspi->s_fpb; } tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), - goal, nfrags, err, locked_page); + goal, nfrags, err, &locked_folio->page); if (!tmp) { *err = -ENOSPC; @@ -420,7 +419,7 @@ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buff if (depth == 1) { phys64 = ufs_inode_getfrag(inode, offsets[0], fragment, - &err, &new, bh_result->b_page); + &err, &new, bh_result->b_folio); } else { int i; phys64 = ufs_inode_getfrag(inode, offsets[0], fragment, |