diff options
author | Zhang Yi <yi.zhang@huawei.com> | 2024-04-25 21:13:27 +0800 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2024-04-29 17:23:11 +0530 |
commit | bb712842a85d595525e72f0e378c143e620b3ea2 (patch) | |
tree | fb80794c036669c4591546c22c526a52057fea0a /include | |
parent | e58ac1770ded2a316447ca7608bb7809af82eca6 (diff) |
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 'include')
0 files changed, 0 insertions, 0 deletions