diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-11-21 13:58:49 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-12-07 00:30:03 +0100 |
commit | 692826b2738101549f032a761a9191636e83be4e (patch) | |
tree | d0551d6dbe14a4cd142fd36ffb0ada36d7ef5362 /fs/cachefiles | |
parent | b430b7751286b3acff2d324553c8cec4f1e87764 (diff) |
btrfs: handle errors while updating refcounts in update_ref_for_cow
Since commit fb235dc06fa (btrfs: qgroup: Move half of the qgroup
accounting time out of commit trans) the assumption that
btrfs_add_delayed_{data,tree}_ref can only return 0 or -ENOMEM has
been false. The qgroup operations call into btrfs_search_slot
and friends and can now return the full spectrum of error codes.
Fortunately, the fix here is easy since update_ref_for_cow failing
is already handled so we just need to bail early with the error
code.
Fixes: fb235dc06fa (btrfs: qgroup: Move half of the qgroup accounting ...)
Cc: <stable@vger.kernel.org> # v4.11+
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: Edmund Nadolski <enadolski@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/cachefiles')
0 files changed, 0 insertions, 0 deletions