diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-10-05 19:02:05 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-10-18 17:35:31 -0400 |
commit | b6250a013d62d100416d4953ae0fcfe8997a8ad4 (patch) | |
tree | ae5d3d70513f3d39a2974d3c40f385c1c5d1251b /fs/ufs | |
parent | d9036c488c6ed503e0c251236abae2b7ed679847 (diff) | |
download | linux-stable-b6250a013d62d100416d4953ae0fcfe8997a8ad4.tar.gz linux-stable-b6250a013d62d100416d4953ae0fcfe8997a8ad4.tar.bz2 linux-stable-b6250a013d62d100416d4953ae0fcfe8997a8ad4.zip |
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) <willy@infradead.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 912950ee5104..1d3eb485df41 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -220,7 +220,7 @@ changed: */ static bool ufs_extend_tail(struct inode *inode, u64 writes_to, - int *err, struct page *locked_page) + int *err, struct folio *locked_folio) { struct ufs_inode_info *ufsi = UFS_I(inode); struct super_block *sb = inode->i_sb; @@ -239,7 +239,7 @@ ufs_extend_tail(struct inode *inode, u64 writes_to, p = ufs_get_direct_data_ptr(uspi, ufsi, block); tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p), new_size - (lastfrag & uspi->s_fpbmask), err, - locked_page); + &locked_folio->page); return tmp != 0; } @@ -413,7 +413,7 @@ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buff unsigned tailfrags = lastfrag & uspi->s_fpbmask; if (tailfrags && fragment >= lastfrag) { if (!ufs_extend_tail(inode, fragment, - &err, bh_result->b_page)) + &err, bh_result->b_folio)) goto out; } } |