diff options
author | David Sterba <dsterba@suse.com> | 2021-07-26 14:15:10 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-08-23 13:19:02 +0200 |
commit | f41b6ba93d8ef990c4acc70987bbc138c1926ebb (patch) | |
tree | 64fc979924c31933b3857b7633ca8421b603f270 /fs/btrfs/ordered-data.h | |
parent | btrfs: switch uptodate to bool in btrfs_writepage_endio_finish_ordered (diff) | |
download | linux-f41b6ba93d8ef990c4acc70987bbc138c1926ebb.tar.xz linux-f41b6ba93d8ef990c4acc70987bbc138c1926ebb.zip |
btrfs: remove uptodate parameter from btrfs_dec_test_first_ordered_pending
In commit e65f152e4348 ("btrfs: refactor how we finish ordered extent io
for endio functions") there was last caller not using 1 for the uptodate
parameter. Now there's only one, passing 1, so we can remove it and
simplify the code.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index b2d88aba8420..4194e960ff61 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h @@ -177,7 +177,7 @@ void btrfs_mark_ordered_io_finished(struct btrfs_inode *inode, bool uptodate); bool btrfs_dec_test_ordered_pending(struct btrfs_inode *inode, struct btrfs_ordered_extent **cached, - u64 file_offset, u64 io_size, int uptodate); + u64 file_offset, u64 io_size); int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, u64 disk_bytenr, u64 num_bytes, u64 disk_num_bytes, int type); |