summaryrefslogtreecommitdiff
path: root/transaction.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-08-28 17:44:41 +0200
committerDavid Sterba <dsterba@suse.com>2017-09-08 16:15:05 +0200
commit355a052647e3a3bab49dfea3f0281f0d5efae4ae (patch)
tree9c3c6eea39ab1b790a0163cbee4333f6f069fe9a /transaction.c
parent0ee0b57f0b7ebfa72a2525afeecc353fd74aca03 (diff)
btrfs-progs: start framework for transaction abort
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'transaction.c')
-rw-r--r--transaction.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/transaction.c b/transaction.c
index 6677a22..feca06b 100644
--- a/transaction.c
+++ b/transaction.c
@@ -173,3 +173,7 @@ commit_tree:
return 0;
}
+void btrfs_abort_transaction(struct btrfs_trans_handle *trans, int error)
+{
+ trans->fs_info->transaction_aborted = error;
+}