diff options
author | David Sterba <dsterba@suse.com> | 2017-08-28 17:44:41 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | 355a052647e3a3bab49dfea3f0281f0d5efae4ae (patch) | |
tree | 9c3c6eea39ab1b790a0163cbee4333f6f069fe9a /transaction.c | |
parent | 0ee0b57f0b7ebfa72a2525afeecc353fd74aca03 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/transaction.c b/transaction.c index 6677a220..feca06b4 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; +} |