]> 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>
Wed, 31 Aug 2011 15:56:51 +0000 (11:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 31 Aug 2011 15:56:51 +0000 (11:56 -0400)
commita64113b30254d51f9a02bf793455d7f2a601144c
tree102201c078c73d911f0a1eb656ee057fe2806489
parent0d3a732cc9ecb0dba5b4d0c4245c539b398af8c8
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