]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: introduce a FORCE_COMMIT_TRANS flush operation
authorJosef Bacik <josef@toxicpanda.com>
Fri, 9 Oct 2020 13:28:21 +0000 (09:28 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:58 +0000 (22:58 +0100)
commit757c053ab658437b57453f31d9545246191979b7
treec17b9da1fa2d85abe3155e0f3169eab165d84319
parent145003077406d2fb412a9a02b570bc272b4ec473
btrfs: introduce a FORCE_COMMIT_TRANS flush operation

Solely for preemptive flushing, we want to be able to force the
transaction commit without any of the ambiguity of
may_commit_transaction().  This is because may_commit_transaction()
checks tickets and such, and in preemptive flushing we already know
it'll be helpful, so use this to keep the code nice and clean and
straightforward.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
[ add comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/space-info.c
include/trace/events/btrfs.h