summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-05-21 17:30:15 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-06-01 12:12:00 -0400
commit90ad1a8ecb9bfd5ff4503ac42cd049a97643ee51 (patch)
tree0e41482d5706e153045c0635c53bb2d9d8c3e704 /fs/internal.h
parent5f5daac12a4cef568d1269be0215fec0667193c1 (diff)
downloadblackbird-op-linux-90ad1a8ecb9bfd5ff4503ac42cd049a97643ee51.tar.gz
blackbird-op-linux-90ad1a8ecb9bfd5ff4503ac42cd049a97643ee51.zip
vfs: split __dentry_open()
Split __dentry_open() into two functions: do_dentry_open() - does most of the actual work, doesn't put file on failure open_check_o_direct() - after a successful open, checks direct_IO method This will allow i_op->atomic_open to do just the file initialization and leave the direct_IO checking to the VFS. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index 8040af489c78..18bc216ea09d 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -100,6 +100,7 @@ extern struct file *do_file_open_root(struct dentry *, struct vfsmount *,
extern long do_handle_open(int mountdirfd,
struct file_handle __user *ufh, int open_flag);
+extern int open_check_o_direct(struct file *f);
/*
* inode.c
OpenPOWER on IntegriCloud