]> 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>
Mon, 22 Aug 2011 18:50:53 +0000 (14:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Aug 2011 18:50:53 +0000 (14:50 -0400)
commit256737db61270ce0e60212a7b8d8e5a4d1f53308
treef53d760d6d1d39461bdb794b825484aaac1c85f0
parentf65fe3148e226007b2e17e29dd962d91646ab0a7
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