btrfs: transaction: Cleanup unused TRANS_STATE_BLOCKED
[linux-2.6-block.git] / fs / btrfs / disk-io.c
index bae334212ee2490dd4abf97653a34b322c3c88e3..00954c99d259a4cc2af3c6dfd7a2b39ad5093d50 100644 (file)
@@ -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)) {