xfs: assert that we hold the ilock for extent map access
authorChristoph Hellwig <hch@infradead.org>
Fri, 6 Dec 2013 20:30:17 +0000 (12:30 -0800)
committerBen Myers <bpm@sgi.com>
Wed, 18 Dec 2013 22:08:46 +0000 (16:08 -0600)
commiteef334e5776c8ef547ada4cec17549929fe590b4
treecf6d3e90b0923494d9201c134e89dd5122cece98
parent568d994e9f53657cb6b3e9c95a83c130d36f83c9
xfs: assert that we hold the ilock for extent map access

Make sure that xfs_bmapi_read has the ilock held in some way, and that
xfs_bmapi_write, xfs_bmapi_delay, xfs_bunmapi and xfs_iread_extents are
called with the ilock held exclusively.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_bmap.c
fs/xfs/xfs_inode_fork.c