mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
btrfs: transaction: Cleanup unused TRANS_STATE_BLOCKED
The state was introduced in commit4a9d8bdee3
("Btrfs: make the state of the transaction more readable"), then in commit302167c50b
("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>
This commit is contained in:
parent
61c047b541
commit
3296bf5624
3 changed files with 4 additions and 14 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue