summaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents_status.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-07-15 06:09:37 +0200
committerTheodore Ts'o <tytso@mit.edu>2013-07-15 06:09:37 +0200
commitc8e15130e1636f68d5165aa2605b8e9cba0f644c (patch)
tree63136907d8f8c602a0ddfd9cc8861a05531d74d7 /fs/ext4/extents_status.c
parentext4: fix error handling in ext4_ext_truncate() (diff)
downloadlinux-c8e15130e1636f68d5165aa2605b8e9cba0f644c.tar.xz
linux-c8e15130e1636f68d5165aa2605b8e9cba0f644c.zip
ext4: simplify calculation of blocks to free on error
In ext4_ext_map_blocks(), if we have successfully allocated the data blocks, but then run into trouble inserting the extent into the extent tree, most likely due to an ENOSPC condition, determine the arguments to ext4_free_blocks() in a simpler way which is easier to prove to be correct. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents_status.c')
0 files changed, 0 insertions, 0 deletions