From: Aneesh Kumar K.V Date: Tue, 29 Apr 2008 12:11:12 +0000 (-0400) Subject: ext4: ENOSPC error handling for writing to an uninitialized extent X-Git-Tag: v2.6.26-rc1~345^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093a088b76352e0a6fdca84eb78b3aa65fbe6dd1;p=pandora-kernel.git ext4: ENOSPC error handling for writing to an uninitialized extent This patch handles possible ENOSPC errors when writing to an uninitialized extent in case the filesystem is full. A write to a prealloc area causes the split of an unititalized extent into initialized and uninitialized extents. If we don't have space to add new extent information, instead of returning error, convert the existing uninitialized extent to initialized one. We need to zero out the blocks corresponding to the entire extent to prevent uninitialized data reaching userspace. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Mingming Cao Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed