[XFS] avoid xfs_getattr in XFS_IOC_FSGETXATTR ioctl
commitc83bfab1faec9c32297d2079c06adaaaea2650d9
authorChristoph Hellwig <hch@infradead.org>
Thu, 11 Oct 2007 07:47:00 +0000 (11 17:47 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Tue, 16 Oct 2007 02:21:48 +0000 (16 12:21 +1000)
treefacee67eadcb9cee317f40a9cd421eafce376bbe
parent859d718279b6e1d6bc27a701db47c1be720b5907
[XFS] avoid xfs_getattr in XFS_IOC_FSGETXATTR ioctl

No need to call into xfs_getattr and put a big bhv_vattr_t on the stack
just to get a little information from the XFS inode.

Add a helper called xfs_ioc_fsgetxattr instead that deals with retrieving
the information in a clean way.

SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29780a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/xfs_ioctl.c