[XFS] Fix regression due to refcache removal
SGI-PV: 971186 SGI-Modid: xfs-linux-melb:xfs-kern:30490a Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Donald Douwsma <donaldd@sgi.com>
This commit is contained in:
parent
163d3686bb
commit
e9a56b7cda
1 changed files with 3 additions and 1 deletions
|
@ -3437,7 +3437,9 @@ xfs_rwunlock(
|
||||||
{
|
{
|
||||||
if (S_ISDIR(ip->i_d.di_mode))
|
if (S_ISDIR(ip->i_d.di_mode))
|
||||||
return;
|
return;
|
||||||
if (locktype != VRWLOCK_WRITE) {
|
if (locktype == VRWLOCK_WRITE) {
|
||||||
|
xfs_iunlock(ip, XFS_IOLOCK_EXCL);
|
||||||
|
} else {
|
||||||
ASSERT((locktype == VRWLOCK_READ) ||
|
ASSERT((locktype == VRWLOCK_READ) ||
|
||||||
(locktype == VRWLOCK_WRITE_DIRECT));
|
(locktype == VRWLOCK_WRITE_DIRECT));
|
||||||
xfs_iunlock(ip, XFS_IOLOCK_SHARED);
|
xfs_iunlock(ip, XFS_IOLOCK_SHARED);
|
||||||
|
|
Reference in a new issue