commit | 7c2d238ac6c435c07780a54719760da2beb46a43 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Fri Jan 26 15:27:33 2018 -0800 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Mon Jan 29 07:27:23 2018 -0800 |
tree | 5ab9c30472ad7bff9ec2ab665ab16ee4f099e76d | |
parent | 1364b1d4b5df31a05b6a3e6fdeb5371dbd4bd8ac [diff] |
xfs: allow xfs_lock_two_inodes to take different EXCL/SHARED modes Refactor xfs_lock_two_inodes to take separate locking modes for each inode. Specifically, this enables us to take a SHARED lock on one inode and an EXCL lock on the other. The lock class (MMAPLOCK/ILOCK) must be the same for each inode. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>