提交 e9a56b7c 编写于 作者: L Lachlan McIlroy 提交者: Lachlan McIlroy

[XFS] Fix regression due to refcache removal

SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:30490a
Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
Signed-off-by: NDonald Douwsma <donaldd@sgi.com>
上级 163d3686
......@@ -3437,7 +3437,9 @@ xfs_rwunlock(
{
if (S_ISDIR(ip->i_d.di_mode))
return;
if (locktype != VRWLOCK_WRITE) {
if (locktype == VRWLOCK_WRITE) {
xfs_iunlock(ip, XFS_IOLOCK_EXCL);
} else {
ASSERT((locktype == VRWLOCK_READ) ||
(locktype == VRWLOCK_WRITE_DIRECT));
xfs_iunlock(ip, XFS_IOLOCK_SHARED);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册