vfs: split __dentry_open()
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 21 May 2012 15:30:15 +0000 (17:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Jun 2012 16:12:00 +0000 (12:12 -0400)
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>
fs/internal.h
fs/open.c

diff --cc fs/internal.h
Simple merge
diff --cc fs/open.c
Simple merge