From: Theodore Ts'o Date: Wed, 8 Jul 2009 21:11:24 +0000 (-0400) Subject: ext4: fix no journal corruption with locale-gen X-Git-Tag: v2.6.31-rc3~1^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5adfee9c17314c1411095c23191c3cb0c2d25f9f;p=pandora-kernel.git 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" --- Reading git-diff-tree failed