xfs: make struct xfs_perag kernel only
authorDave Chinner <dchinner@redhat.com>
Mon, 12 Aug 2013 10:49:55 +0000 (20:49 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 12 Aug 2013 22:44:36 +0000 (17:44 -0500)
commit9356fe22af084e7b9c1f3c8633a1cbe9b36de405
tree9565b714f4babcac4ca914418b61788d6b588eed
parent4f3d71f68bc976321b19efe2624cd91619af601f
xfs: make struct xfs_perag kernel only

The struct xfs_perag has many kernel-only definitions in it,
requiring a __KERNEL__ guard so userspace can use it to. Move it to
xfs_mount.h so that it it kernel-only, and let userspace redefine
it's own version of the structure containing only what it needs.
This gets rid of another __KERNEL__ check in the XFS header files.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_acl.c
fs/xfs/xfs_ag.h
fs/xfs/xfs_mount.h
fs/xfs/xfs_symlink_remote.c