[XFS] move inode allocation out xfs_iread
authorChristoph Hellwig <hch@lst.de>
Fri, 28 Nov 2008 03:23:42 +0000 (14:23 +1100)
committerNiv Sardi <xaiki@sgi.com>
Mon, 1 Dec 2008 00:38:17 +0000 (11:38 +1100)
commit24f211bad09a31f19dda0c3faffe0244f4f235f5
tree3554243712a41729df866e348a3925ffdf950b8c
parentb48d8d64377f39913663a06f4757f3b8c6fc6d87
[XFS] move inode allocation out xfs_iread

Allocate the inode in xfs_iget_cache_miss and pass it into xfs_iread.  This
simplifies the error handling and allows xfs_iread to be shared with userspace
which already uses these semantics.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h