aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-08-13 21:44:34 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-08-13 21:44:34 -0400
commitb4df2030858bde986cb6ff2e4b45945f84649e32 (patch)
tree3f078df884f234383c6708ddc54695700f270417 /lib/bitmap.c
parentext4: Handle unwritten extent properly with delayed allocation (diff)
downloadwireguard-linux-b4df2030858bde986cb6ff2e4b45945f84649e32.tar.xz
wireguard-linux-b4df2030858bde986cb6ff2e4b45945f84649e32.zip
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>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions