udf: Fix possible corruption when close races with write
authorJan Kara <jack@suse.cz>
Thu, 6 Aug 2009 22:27:27 +0000 (00:27 +0200)
committerJan Kara <jack@suse.cz>
Mon, 14 Sep 2009 17:13:01 +0000 (19:13 +0200)
When we close a file, we remove preallocated blocks from it. But this
truncation was not protected by i_mutex and thus it could have raced with a
write through a different fd and cause crashes or even filesystem corruption.

Signed-off-by: Jan Kara <jack@suse.cz>

No differences found