summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2019-08-22 15:25:00 +0800
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:50 +0100
commit3296bf562443a8ca35aaad959a76a49e9b412760 (patch)
treed468b79eafd39be540c842ce592a1d7d1d34dc39 /fs/btrfs/disk-io.c
parent61c047b541b56f4ec78886e9d695e0a3bbcd3834 (diff)
downloadlinux-stable-3296bf562443a8ca35aaad959a76a49e9b412760.tar.gz
linux-stable-3296bf562443a8ca35aaad959a76a49e9b412760.tar.bz2
linux-stable-3296bf562443a8ca35aaad959a76a49e9b412760.zip
btrfs: transaction: Cleanup unused TRANS_STATE_BLOCKED
The state was introduced in commit 4a9d8bdee368 ("Btrfs: make the state of the transaction more readable"), then in commit 302167c50b32 ("btrfs: don't end the transaction for delayed refs in throttle") the state is completely removed. So we can just clean up the state since it's only compared but never set. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index bae334212ee2..00954c99d259 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1741,7 +1741,7 @@ static int transaction_kthread(void *arg)
}
now = ktime_get_seconds();
- if (cur->state < TRANS_STATE_BLOCKED &&
+ if (cur->state < TRANS_STATE_COMMIT_START &&
!test_bit(BTRFS_FS_NEED_ASYNC_COMMIT, &fs_info->flags) &&
(now < cur->start_time ||
now - cur->start_time < fs_info->commit_interval)) {