[PATCH 2/3] Btrfs: return ENOMEM rather than use BUG_ON when btrfs_alloc_path fails

2013-02-27 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com Return ENOMEM rather trigger BUG_ON, fix it. Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com Reviewed-by: Miao Xie mi...@cn.fujitsu.com --- fs/btrfs/qgroup.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 2/3] Btrfs: return ENOMEM rather than use BUG_ON when btrfs_alloc_path fails

2013-02-27 Thread Zach Brown
Return ENOMEM rather trigger BUG_ON, fix it. These changes look good. The resulting surrounding state buildup and cleanup paths look correct. Thanks for helping remove a few more BUG_ON()s :). Reviewed-by: Zach Brown z...@redhat.com -- To unsubscribe from this list: send the line unsubscribe