Skip to content

Commit

Permalink
ocfs2: Clear slot map when umounting a local volume
Browse files Browse the repository at this point in the history
This is technically harmless (recovery will clean it out later), but leaves
a bogus entry in the slot_map which really shouldn't be there.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Mark Fasheh committed Oct 12, 2007
1 parent 015452b commit 19b613d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,12 +1209,13 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
tmp = ocfs2_request_umount_vote(osb);
if (tmp < 0)
mlog_errno(tmp);
}

if (osb->slot_num != OCFS2_INVALID_SLOT)
ocfs2_put_slot(osb);
if (osb->slot_num != OCFS2_INVALID_SLOT)
ocfs2_put_slot(osb);

if (osb->dlm)
ocfs2_super_unlock(osb, 1);
}

ocfs2_release_system_inodes(osb);

Expand Down

0 comments on commit 19b613d

Please sign in to comment.