summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2020-10-09 09:28:21 -0400
committerDavid Sterba <dsterba@suse.com>2021-02-08 22:58:58 +0100
commitf00c42dd4cc8b856e68638e6a88b51f88b8e849e (patch)
treec17b9da1fa2d85abe3155e0f3169eab165d84319 /fs/btrfs/ctree.h
parent5deb17e18e27a3502f21581ba4d086e762b86b31 (diff)
downloadlinux-stable-f00c42dd4cc8b856e68638e6a88b51f88b8e849e.tar.gz
linux-stable-f00c42dd4cc8b856e68638e6a88b51f88b8e849e.tar.bz2
linux-stable-f00c42dd4cc8b856e68638e6a88b51f88b8e849e.zip
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 7d8660227520..90726954b883 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2740,6 +2740,7 @@ enum btrfs_flush_state {
ALLOC_CHUNK_FORCE = 8,
RUN_DELAYED_IPUTS = 9,
COMMIT_TRANS = 10,
+ FORCE_COMMIT_TRANS = 11,
};
int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,