xfs: Specify lockmode when calling xfs_ilock_for_iomap()
authorStefan Roesch <shr@fb.com>
Thu, 23 Jun 2022 17:51:56 +0000 (10:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:32 +0000 (18:39 -0600)
commit9641506b2deed1bb6be7464a95d62c472eca0e8e
treece96719b0f51ba761259dbd0cfd2b8b6c568ae9c
parent1c849b481b3e4f8c36f297cd3aa88ef52a19cee9
xfs: Specify lockmode when calling xfs_ilock_for_iomap()

This patch changes the helper function xfs_ilock_for_iomap such that the
lock mode must be passed in.

Signed-off-by: Stefan Roesch <shr@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20220623175157.1715274-14-shr@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/xfs/xfs_iomap.c