From: Theodore Ts'o Date: Mon, 15 Jul 2013 04:09:37 +0000 (-0400) Subject: ext4: simplify calculation of blocks to free on error X-Git-Tag: v3.11-rc2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e15130e1636f68d5165aa2605b8e9cba0f644c;p=pandora-kernel.git ext4: simplify calculation of blocks to free on error In ext4_ext_map_blocks(), if we have successfully allocated the data blocks, but then run into trouble inserting the extent into the extent tree, most likely due to an ENOSPC condition, determine the arguments to ext4_free_blocks() in a simpler way which is easier to prove to be correct. Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed