diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-10-04 17:47:09 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-10-12 14:54:33 -0400 |
commit | 19b613d41051296be628581e7e21b847e9eaba80 (patch) | |
tree | 9b5adabc3d3ef6b478e54b2a44aac3aca38cea33 /fs/ocfs2/super.c | |
parent | 015452b15ff6c2d9fa1f82f28d61e7a66e2df86a (diff) |
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: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index c034b5129c1e..19436d1ff57f 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -1209,12 +1209,13 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err) | |||
1209 | tmp = ocfs2_request_umount_vote(osb); | 1209 | tmp = ocfs2_request_umount_vote(osb); |
1210 | if (tmp < 0) | 1210 | if (tmp < 0) |
1211 | mlog_errno(tmp); | 1211 | mlog_errno(tmp); |
1212 | } | ||
1212 | 1213 | ||
1213 | if (osb->slot_num != OCFS2_INVALID_SLOT) | 1214 | if (osb->slot_num != OCFS2_INVALID_SLOT) |
1214 | ocfs2_put_slot(osb); | 1215 | ocfs2_put_slot(osb); |
1215 | 1216 | ||
1217 | if (osb->dlm) | ||
1216 | ocfs2_super_unlock(osb, 1); | 1218 | ocfs2_super_unlock(osb, 1); |
1217 | } | ||
1218 | 1219 | ||
1219 | ocfs2_release_system_inodes(osb); | 1220 | ocfs2_release_system_inodes(osb); |
1220 | 1221 | ||