summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-07-23 00:00:20 -0400
committerBen Hutchings <ben@decadent.org.uk>2012-08-02 14:37:58 +0100
commitd9af29329519c623a5a9c8b39439ed2886c9f30b (patch)
treee27da93944718b801decdd742b721916ffbe04b9 /sound
parent50e7ae34b18bb8a4911349184685fc1c4d9c0f50 (diff)
ext4: undo ext4_calc_metadata_amount if we fail to claim space
commit 03179fe92318e7934c180d96f12eff2cb36ef7b6 upstream. The function ext4_calc_metadata_amount() has side effects, although it's not obvious from its function name. So if we fail to claim space, regardless of whether we retry to claim the space again, or return an error, we need to undo these side effects. Otherwise we can end up incorrectly calculating the number of metadata blocks needed for the operation, which was responsible for an xfstests failure for test #271 when using an ext2 file system with delalloc enabled. Reported-by: Brian Foster <bfoster@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions