xfs: add a xfs_bmap_fork_to_state helper
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 18:02:29 +0000 (11:02 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:26 +0000 (15:38 -0700)
commit060ea65b39409f3b9952dfa6db5fbe4355e6888a
tree86783feffcf3652cdcac60f7fd1a34ec9b020b21
parentc2fc338c87a31f557b57f5143602444ba3cf2c3e
xfs: add a xfs_bmap_fork_to_state helper

This creates the right initial bmap state from the passed in inode
fork enum.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h