xfs: Convert double locking of MMAPLOCK to use VFS helpers
authorJan Kara <jack@suse.cz>
Mon, 24 May 2021 11:17:49 +0000 (13:17 +0200)
committerJan Kara <jack@suse.cz>
Tue, 13 Jul 2021 12:29:00 +0000 (14:29 +0200)
commitd2c292d84c4983424938f32c9c247f6ab8719769
treebacececeaaf32c560974599d284f3ed99067a339
parent2433480a7e1d0c057442b284c336cfaa61523117
xfs: Convert double locking of MMAPLOCK to use VFS helpers

Convert places in XFS that take MMAPLOCK for two inodes to use helper
VFS provides for it (filemap_invalidate_down_write_two()). Note that
this changes lock ordering for MMAPLOCK from inode number based ordering
to pointer based ordering VFS generally uses.

CC: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_inode.c