Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19b613d4 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

ocfs2: Clear slot map when umounting a local volume



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: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 015452b1
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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->dlm)
		ocfs2_super_unlock(osb, 1);
	}

	ocfs2_release_system_inodes(osb);