commit | b4df2030858bde986cb6ff2e4b45945f84649e32 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Wed Aug 13 21:44:34 2008 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed Aug 13 21:44:34 2008 -0400 |
tree | 3f078df884f234383c6708ddc54695700f270417 | |
parent | bf068ee266f9dbaa6dacb8433a366bb399e7ae5b [diff] |
ext4: Fix potential truncate BUG due to i_prealloc_list being non-empty We need to call ext4_discard_reservation() earlier in ext4_truncate(), to avoid a BUG() in ext4_mb_return_to_preallocation(), which is called (ultimately) by ext4_free_blocks(). So we must ditch the blocks on i_prealloc_list before we start freeing the data blocks. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>