]> 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)
commit423e6567f57213810dd1ef109a2bad3a88160c76
tree055469fb64d3dd042bc3865fb440a80a8b1e3e02
parent06736d046311d8cd209ae87e70673cb7bf4f016e
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