Staging
v0.5.1
https://github.com/torvalds/linux
Revision dd190d066b7ded8c44b2b67dd0a14bed01525d3c authored by Miklos Szeredi on 30 September 2005, 18:59:02 UTC, committed by Linus Torvalds on 30 September 2005, 19:41:18 UTC
Check O_DIRECT and return -EINVAL error in open.  dentry_open() also checks
this but only after the open method is called.  This patch optimizes away
the unnecessary upcalls in this case.

It could be a correctness issue too: if filesystem has open() with side
effect, then it should fail before doing the open, not after.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent daa35ed
History
Tip revision: dd190d066b7ded8c44b2b67dd0a14bed01525d3c authored by Miklos Szeredi on 30 September 2005, 18:59:02 UTC
[PATCH] fuse: check O_DIRECT
Tip revision: dd190d0
File Mode Size
Documentation
arch
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.1 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 59.3 KB
Makefile -rw-r--r-- 42.4 KB
README -rw-r--r-- 14.4 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top