From: Amir Goldstein Date: Mon, 21 Mar 2011 02:59:02 +0000 (-0400) Subject: ext4: handle errors in ext4_clear_blocks() X-Git-Tag: v2.6.39-rc1~73^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d67d1218344009970ba0deb7eb15a3984518ddd0;p=pandora-kernel.git ext4: handle errors in ext4_clear_blocks() Checking return code from ext4_journal_get_write_access() is important with snapshots, because this function invokes COW, so may return new errors, such as ENOSPC. ext4_clear_blocks() now returns < 0 for fatal errors, in which case, ext4_free_data() is aborted. Signed-off-by: Amir Goldstein Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed