From: Jan Schmidt Date: Fri, 23 Mar 2012 16:24:19 +0000 (+0100) Subject: Btrfs: check return value of btrfs_cow_block() X-Git-Tag: v3.4-rc1~22^2~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=103e976616fe9c2a3e40764c979fa1a592274da2;p=pandora-kernel.git Btrfs: check return value of btrfs_cow_block() The two helper functions commit_cowonly_roots() and create_pending_snapshot() failed to check the return value from btrfs_cow_block(), which could at least in theory fail with -ENOSPC from btrfs_alloc_free_block(). This commit adds the missing checks. Signed-off-by: Jan Schmidt --- Reading git-diff-tree failed