commit | f90e579c2b391979630b3343de0be65ab1b478ce | [log] [tgz] |
---|---|---|
author | Mark Fasheh <mfasheh@suse.de> | Thu Jul 17 12:39:04 2014 -0700 |
committer | Chris Mason <clm@fb.com> | Fri Aug 15 07:43:16 2014 -0700 |
tree | f62a838f21e8b592796893e9998cc53310fea172 | |
parent | 1152651a081720ef6a8c76bb7da676e8c900ac30 [diff] |
btrfs: correctly handle return from ulist_add ulist_add() can return '1' on sucess, which qgroup_subtree_accounting() doesn't take into account. As a result, that value can be bubbled up to callers, causing an error to be printed. Fix this by only returning the value of ulist_add() when it indicates an error. Signed-off-by: Mark Fasheh <mfasheh@suse.de> Signed-off-by: Chris Mason <clm@fb.com>