From: Eric Sandeen Date: Tue, 28 Oct 2008 04:08:17 +0000 (-0400) Subject: delay capable() check in ext4_has_free_blocks() X-Git-Tag: v2.6.28-rc3~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a996031c87e093017c0763326a08896a3a4817f4;p=pandora-kernel.git delay capable() check in ext4_has_free_blocks() As reported by Eric Paris, the capable() check in ext4_has_free_blocks() sometimes causes SELinux denials. We can rearrange the logic so that we only try to use the root-reserved blocks when necessary, and even then we can move the capable() test to last, to avoid the check most of the time. Signed-off-by: Eric Sandeen Reviewed-by: Mingming Cao Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed