]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fake direct I/O mode for data=journal
authorTheodore Ts'o <tytso@mit.edu>
Fri, 19 Aug 2011 23:21:32 +0000 (19:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 19 Aug 2011 23:21:32 +0000 (19:21 -0400)
commit74632b271f45fb354cde9635d2b70d771b44e568
tree0afb032eae720b24cd4f8ead6da52238e9cd70b7
parent954cb417902be465219b63dcef8773153df77892
ext4: fake direct I/O mode for data=journal

Currently attempts to open a file with O_DIRECT in data=journal mode
causes the open to fail with -EINVAL.  This makes it very hard to test
data=journal mode.  So we will let the open succeed, but then always
fall back to O_DSYNC buffered writes.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c