diff options
author | 2009-07-08 17:11:24 -0400 | |
---|---|---|
committer | 2009-07-08 17:11:24 -0400 | |
commit | 5adfee9c17314c1411095c23191c3cb0c2d25f9f (patch) | |
tree | 67b9d406ffd6d72c3c0a02f599ea97c6fd8780ef /lib/flex_array.c | |
parent | ext4: Calculate required journal credits for inserting an extent properly (diff) | |
download | wireguard-linux-5adfee9c17314c1411095c23191c3cb0c2d25f9f.tar.xz wireguard-linux-5adfee9c17314c1411095c23191c3cb0c2d25f9f.zip |
ext4: fix no journal corruption with locale-gen
If there is no journal, ext4_should_writeback_data() should return
TRUE. This will fix ext4_set_aops() to set ext4_da_ops in the case of
delayed allocation; otherwise ext4_journaled_aops gets used by
default, which doesn't handle delayed allocation properly.
The advantage of using ext4_should_writeback_data() approach is that
it should handle nobh better as well.
Thanks to Curt Wohlgemuth for investigating this problem, and Aneesh
Kumar for suggesting this approach.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions