commit | 86c4f6d85595cd7da635dc6985d27bfa43b1ae10 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Wed Apr 27 18:20:44 2011 +0200 |
committer | Jan Kara <jack@suse.cz> | Tue May 17 13:47:15 2011 +0200 |
tree | ef129a2eebdf5cfbecc0ddfbef96b26590242c3d | |
parent | ae54870a1dc978a88377ae8af0780648f2ccd4dc [diff] |
ext3: Fix fs corruption when make_indexed_dir() fails When make_indexed_dir() fails (e.g. because of ENOSPC) after it has allocated block for index tree root, we did not properly mark all changed buffers dirty. This lead to only some of these buffers being written out and thus effectively corrupting the directory. Fix the issue by marking all changed data dirty even in the error failure case. CC: stable@kernel.org Signed-off-by: Jan Kara <jack@suse.cz>