From: Amir Goldstein Date: Mon, 21 Mar 2011 01:18:44 +0000 (-0400) Subject: ext4: handle errors in ext4_rename X-Git-Tag: v2.6.39-rc1~73^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef6078930263bfcdcfe4dddb2cd85254b4cf4f5c;p=pandora-kernel.git ext4: handle errors in ext4_rename 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. We move the call to ext4_journal_get_write_access earlier in the function, to simplify error handling in the case that this function returns returns an error. Signed-off-by: Amir Goldstein Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed