commit | cbc8cc33529b0e0e55ae0ff077b8cb0b71d54c7a | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Fri Aug 07 00:27:27 2009 +0200 |
committer | Jan Kara <jack@suse.cz> | Mon Sep 14 19:13:01 2009 +0200 |
tree | 5edace261ca6d707456d1bde03c0bf719ac8a365 | |
parent | 81056dd04465902461b627169c4b4487a11acba1 [diff] |
udf: Fix possible corruption when close races with write 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>