From: Mark Fasheh Date: Thu, 17 Jul 2014 19:39:04 +0000 (-0700) Subject: btrfs: correctly handle return from ulist_add X-Git-Tag: omap-for-v3.17/fixes-against-rc2~48^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f90e579c2b391979630b3343de0be65ab1b478ce;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed