From: Aneesh Kumar K.V Date: Tue, 16 Mar 2010 00:26:00 +0000 (-0400) Subject: ext4: Retry block allocation if we have free blocks left X-Git-Tag: v2.6.27.47~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df104d2bff4a2d6cf32c29aa599c79d8009fe1a7;p=pandora-kernel.git ext4: Retry block allocation if we have free blocks left commit df22291ff0fde0d350cf15dac3e5cc33ac528875 upstream. When we truncate files, the meta-data blocks released are not reused untill we commit the truncate transaction. That means delayed get_block request will return ENOSPC even if we have free blocks left. Force a journal commit and retry block allocation if we get ENOSPC with free blocks left. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Mingming Cao Signed-off-by: "Theodore Ts'o" Signed-off-by: Jayson R. King Signed-off-by: Theodore Ts'o Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed