xfs: factor out a xfs_ilock_iocb helper
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Jan 2021 18:06:27 +0000 (10:06 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 1 Feb 2021 17:47:18 +0000 (09:47 -0800)
commitf50b8f475a2c70ae8309c16b6d4ecb305a4aa9d6
tree40119314163b9351ba31d13a49a25b0fdd8de9e0
parent213f627104daf8589aad8ee73fcaeb603ab0af15
xfs: factor out a xfs_ilock_iocb helper

Add a helper to factor out the nowait locking logical for the read/write
helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_file.c