xfs: refactor xfs_inode_item_format
authorChristoph Hellwig <hch@infradead.org>
Fri, 13 Dec 2013 00:00:43 +0000 (11:00 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 13 Dec 2013 00:00:43 +0000 (11:00 +1100)
commit3de559fbd04d67473b9be2bd183823c40c4b7557
treeaa3ba1c495f9a57362d4e9c77e6005bb43a44cde
parentce9641d6c981aad0463b2d1455f0b60e5c8671c5
xfs: refactor xfs_inode_item_format

Split out a function to handle the data and attr fork, as well as a
helper for the really old v1 inodes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_inode_item.c