From: Miklos Szeredi Date: Fri, 30 Sep 2005 18:59:02 +0000 (-0700) Subject: [PATCH] fuse: check O_DIRECT X-Git-Tag: v2.6.14-rc3~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd190d066b7ded8c44b2b67dd0a14bed01525d3c;p=pandora-kernel.git [PATCH] fuse: check O_DIRECT 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed