diff options
| author | Josef Bacik <[email protected]> | 2024-07-24 19:53:18 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-09-10 14:51:14 +0000 |
| commit | aef665d69ad15afaebdc2c32b3e58fc526ba6c3d (patch) | |
| tree | 4f10f0631fd5b3988bc7b01835a30e8a0e87c98c /fs/btrfs/ordered-data.c | |
| parent | btrfs: convert can_finish_ordered_extent() to use a folio (diff) | |
| download | kernel-aef665d69ad15afaebdc2c32b3e58fc526ba6c3d.tar.gz kernel-aef665d69ad15afaebdc2c32b3e58fc526ba6c3d.zip | |
btrfs: convert btrfs_finish_ordered_extent() to take a folio
The callers and callee's of this now all use folios, update it to take a
folio as well.
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
| -rw-r--r-- | fs/btrfs/ordered-data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index 760a37512c7e..e97747956040 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -397,7 +397,7 @@ static void btrfs_queue_ordered_fn(struct btrfs_ordered_extent *ordered) } void btrfs_finish_ordered_extent(struct btrfs_ordered_extent *ordered, - struct page *page, u64 file_offset, u64 len, + struct folio *folio, u64 file_offset, u64 len, bool uptodate) { struct btrfs_inode *inode = ordered->inode; @@ -407,8 +407,8 @@ void btrfs_finish_ordered_extent(struct btrfs_ordered_extent *ordered, trace_btrfs_finish_ordered_extent(inode, file_offset, len, uptodate); spin_lock_irqsave(&inode->ordered_tree_lock, flags); - ret = can_finish_ordered_extent(ordered, page_folio(page), file_offset, - len, uptodate); + ret = can_finish_ordered_extent(ordered, folio, file_offset, len, + uptodate); spin_unlock_irqrestore(&inode->ordered_tree_lock, flags); /* |
