[XFS] factor out xfs_read_agi helper
authorChristoph Hellwig <hch@lst.de>
Fri, 28 Nov 2008 03:23:37 +0000 (14:23 +1100)
committerNiv Sardi <xaiki@sgi.com>
Mon, 1 Dec 2008 00:37:15 +0000 (11:37 +1100)
commit5e1be0fb1a3950597aeda448698e85b0595a2e92
treee9cb423d6f253b689a9e0cfb4a1d429de37959cd
parent26c5295135d10fc90cbf160adfda392d91f58279
[XFS] factor out xfs_read_agi helper

Add a helper to read the AGI header and perform basic verification.
Based on hunks from a larger patch from Dave Chinner.

(First sent on Juli 23rd)

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_ag.h
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_log_recover.c