Re: [PATCH 1/2] btrfs: Explicitly handle btrfs_update_root failure

2017-09-29 Thread David Sterba
On Thu, Sep 28, 2017 at 10:53:17AM +0300, Nikolay Borisov wrote: > btrfs_udpate_root can fail and it aborts the transaction, the correct way to > handle an aborted transaction is to explicitly end with btrfs_end_transaction. > Even now the code is correct since btrfs_commit_transaction would handle

[PATCH 1/2] btrfs: Explicitly handle btrfs_update_root failure

2017-09-28 Thread Nikolay Borisov
btrfs_udpate_root can fail and it aborts the transaction, the correct way to handle an aborted transaction is to explicitly end with btrfs_end_transaction. Even now the code is correct since btrfs_commit_transaction would handle an aborted transaction but this is more of an implementation detail. S