Revert "vfs: nameidata_to_filp(): don't throw away file on error"

This reverts commit 013b8a2484b6afa480e7501478a5c3789abda513.
Revert "vfs: nameidata_to_filp(): inline __dentry_open()"

This reverts commit c4c527b530dea7f6477be13d59554dc3971ad918.
Revert "vfs: do_dentry_open(): don't put filp"

This reverts commit c8b9b02d2424dcee35d60ffaa4ef595dfdcdb536.
Revert "vfs: split __dentry_open()"

This reverts commit f4ee7be7f94576f8a78f94e79e8b80125d7e0beb.
Revert "vfs/splice: Fix missed checks in new __kernel_write() helper"

This reverts commit 55a548a45e37e32a7c76b47929bd2698cc12ae5b.
Revert "switch lseek to COMPAT_SYSCALL_DEFINE"

This reverts commit b2a3dbb39746ab111e1643972b2101a9b1a3eb50.
Revert "Don't bother with redoing rw_verify_area() from default_file_splice_from()"

This reverts commit 1ae43258a6d0b0f0907c226ccce576070f27a18e.
Revert "userns: Convert user specfied uids and gids in chown into kuids and kgid"

This reverts commit 432990c063b3a87a10efc05e18a77f416ea33cd4.
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>
vfs: do_dentry_open(): don't put filp

Move put_filp() out to __dentry_open(), the only caller now.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
vfs: nameidata_to_filp(): inline __dentry_open()

Copy __dentry_open() into nameidata_to_filp().

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
vfs: nameidata_to_filp(): don't throw away file on error

If open fails, don't put the file.  This allows it to be reused if open needs to
be retried.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Revert "posix-timers: Fix clock_adjtime to always return timex data on success"

This reverts commit 8605151ce9ef3800f4e257d38bf491cd56c9a0ae.
Revert "posix-timers: Remove unused variable"

This reverts commit dc60fa4a09a2a26ee8b0880018f015ec47bc5675.
Revert "posix timers: Allocate timer id per process (v2)"

This reverts commit 78f20e5e6c14696701eb325e83b7c1d9251d7282.
Revert "posix-timers: convert to idr_alloc()"

This reverts commit 604961c08f3bb44e199d26d05b2f684019974579.