]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Issue the discard operation *before* releasing the blocks to be reused
authorTheodore Ts'o <tytso@mit.edu>
Tue, 20 Apr 2010 20:51:59 +0000 (16:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 Apr 2010 20:51:59 +0000 (16:51 -0400)
commit94f1fea15e008253eb600268fcf46eedd846c0a8
treed2e2b36b4d88d2098000fcb56cc56e5d2e74fdf1
parent4c0c11a4a1139ac81a658a3af45a2a204e57d8ba
ext4: Issue the discard operation *before* releasing the blocks to be reused

Otherwise, we can end up having data corruption because the blocks
could get reused and then discarded!

https://bugzilla.kernel.org/show_bug.cgi?id=15579

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c