xfs: assert that xfs_reflink_allocate_cow is called with XFS_ILOCK_EXCL
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Mar 2018 06:15:31 +0000 (23:15 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 15 Mar 2018 17:31:38 +0000 (10:31 -0700)
commitc7dbe3f2c41969845b8ea000fc5e025d4987a8fb
treec32d99879100de9241d7e47ce1d6f0ff05a6f5a4
parent7d9df3c1631b0cb7eb4e59c934271adf0ead2f55
xfs: assert that xfs_reflink_allocate_cow is called with XFS_ILOCK_EXCL

Now that we convert COW preallocations from unwritten to real on every
call this function needs to be called with the ilock held exclusively.

Fortunately we already do that, but update the assert to match.

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/xfs_reflink.c