summaryrefslogtreecommitdiffstats
path: root/fs/ext4/migrate.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2008-04-29 14:11:12 +0200
committerTheodore Ts'o <tytso@mit.edu>2008-04-29 14:11:12 +0200
commit093a088b76352e0a6fdca84eb78b3aa65fbe6dd1 (patch)
tree18b9266ce90cb63726c8b6e0e7a026d11ed66a40 /fs/ext4/migrate.c
parentsparc: Export symbols for ZERO_PAGE usage in modules. (diff)
downloadlinux-093a088b76352e0a6fdca84eb78b3aa65fbe6dd1.tar.xz
linux-093a088b76352e0a6fdca84eb78b3aa65fbe6dd1.zip
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 <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/migrate.c')
0 files changed, 0 insertions, 0 deletions