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/inode.c | |
parent | 25c1252a026c6c34ff99c86f31856701b2192c0e (diff) | |
download | linux-f41b6ba93d8ef990c4acc70987bbc138c1926ebb.tar.bz2 |
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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d41aa8e5d0cc..83caf69295f7 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8554,7 +8554,7 @@ static void btrfs_invalidatepage(struct page *page, unsigned int offset, spin_unlock_irq(&inode->ordered_tree.lock); if (btrfs_dec_test_ordered_pending(inode, &ordered, - cur, range_end + 1 - cur, 1)) { + cur, range_end + 1 - cur)) { btrfs_finish_ordered_io(ordered); /* * The ordered extent has finished, now we're again |