aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/timeconst.pl
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-09-17 09:34:16 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-09-17 09:34:16 -0400
commit5534fb5bb35a62a94e0bd1fa2421f7fb6e894f10 (patch)
tree1a9da05279129a9331494c1faab6cfa22cd10ce8 /kernel/timeconst.pl
parentfb40ba0d98968bc3454731360363d725b4f1064c (diff)
ext4: Fix the alloc on close after a truncate hueristic
In an attempt to avoid doing an unneeded flush after opening a (previously non-existent) file with O_CREAT|O_TRUNC, the code only triggered the hueristic if ei->disksize was non-zero. Turns out that the VFS doesn't call ->truncate() if the file doesn't exist, and ei->disksize is always zero even if the file previously existed. So remove the test, since it isn't necessary and in fact disabled the hueristic. Thanks to Clemens Eisserer that he was seeing problems with files written using kwrite and eclipse after sudden crashes caused by a buggy Intel video driver. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'kernel/timeconst.pl')
0 files changed, 0 insertions, 0 deletions
'>265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
















































































































































































































































































































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
‰PNG