xfs: remove the imap_valid flag
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Jul 2018 05:26:02 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:02 +0000 (22:26 -0700)
commit889c65b3f60af4c840896478fc6151363ffa279f
treec4e0685540bc6c0652b8e839fac3575189936edd
parent3345746ef38bb794ae9d4d0762adf151e452663e
xfs: remove the imap_valid flag

Simplify the way we check for a valid imap - we know we have a valid
mapping after xfs_map_blocks returned successfully, and we know we can
call xfs_imap_valid on any imap, as it will always fail on a
zero-initialized map.

We can also remove the xfs_imap_valid function and fold it into
xfs_map_blocks now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_aops.c