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)
commit90ad1a8ecb9bfd5ff4503ac42cd049a97643ee51
tree0e41482d5706e153045c0635c53bb2d9d8c3e704
parent5f5daac12a4cef568d1269be0215fec0667193c1
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>
fs/internal.h
fs/open.c