orangefs: remove pvfs2_inode_list

The list is only used to paper over a case of leaked inodes on module
removal, which is actively dangerous as inodes would only stay around
if they actually are referenced.  Instead of freeing them rely on the
VFS-level warnings about active inodes after umount.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove allocated/free inode counter

The VFS already warns about busy inodes on umount, no need to keep
separate counters for this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: streamline inode allocation / freeing

Move all code to super.c, remove small helper functions and don't zero
fields before freeing the inode.

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

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

The superblock passed is always valid.

Also remove the emptry pvfs2_flush_sb function.

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

No need to clean up litter dentries on orangefs.  Also remove the
shrink_dcache_sb call, and the dput of the root dentry as the VFS
already takes care of this.

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

The VFS only calls ->get_acl or ->set_acl if the MS_POSIXACL flag
is set on the superblock, so these checks are superflous.

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

We always pass a valid sb, and reuse the existing mount arguments,
so simplify pvfs2_remount to not bother with checking the superblock
or trying to pass mount arguments.

With this there's also no more need to store the text version of the
mount options in the superblock.

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

Use the generic mount option parser, and just store a flags field in the
superblock instead of an options structure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: don't truncate values in pvfs2_statfs

The size of the old statfs buffer has very little meaning today as
most applications uses statfs64, which passes 64-bit values along.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: inode is never NULL in pvfs2_dirty_inode

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: clean up pvfs2_mount error handling

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