diff options
author | 2024-04-25 21:13:27 +0800 | |
---|---|---|
committer | 2024-04-29 17:23:11 +0530 | |
commit | bb712842a85d595525e72f0e378c143e620b3ea2 (patch) | |
tree | fb80794c036669c4591546c22c526a52057fea0a /scripts/generate_rust_analyzer.py | |
parent | xfs: refactor dir format helpers (diff) | |
download | wireguard-linux-bb712842a85d595525e72f0e378c143e620b3ea2.tar.xz wireguard-linux-bb712842a85d595525e72f0e378c143e620b3ea2.zip |
xfs: match lock mode in xfs_buffered_write_iomap_begin()
Commit 1aa91d9c9933 ("xfs: Add async buffered write support") replace
xfs_ilock(XFS_ILOCK_EXCL) with xfs_ilock_for_iomap() when locking the
writing inode, and a new variable lockmode is used to indicate the lock
mode. Although the lockmode should always be XFS_ILOCK_EXCL, it's still
better to use this variable instead of useing XFS_ILOCK_EXCL directly
when unlocking the inode.
Fixes: 1aa91d9c9933 ("xfs: Add async buffered write support")
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions