orangefs: remove struct pvfs2_opaque_handle_t and related code

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove ino_to_pvfs2_handle

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: use pvfs2_iget to get root inode

The root inode is not something that we might have to create, but
rather an object that just needs to be looked up.  Use pvfs2_iget
to do just that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: fix incorrect initial link count for symlinks

Remove a special case in pvfs2_get_custom_inode_common that incorrectly
increase the link count for every newly created symbolic link.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: don't use iget to allocate inodes

When creating new files we don't want to use iget to allocate a new
inode, instead use new_inode to allocate a guaranteed new inode, and
use insert_inode_locked4 to make sure there's not old inode on the
way out that we were racing with.  Also clean up the surrounding
code pathes a little bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: return errors from pvfs2_iget and pvfs2_new_inode

Avoid the need for an error_code inode field by properly propagating the
error code from the initial inode read.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: merge pvfs2_remove_entry into pvfs2_unlink

Following the scheme we applied to various other namespace operations.

Also remove various dead checks for half-constructed inodes that can't
happen.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: simplify pvfs2_rename

Rename #if 0'ed code and handling for half-constructed inodes that can't
happen.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>