Skip to contentSkip to conversation

Remove drop of module ref where not needed

Cluster-devel Steven Whitehouse 1 participant 1 message Mar 10, 2008 GFS2 file system

lore
Share & tools
lore
#0 lore raw

From 1f528d6b70eaccbf5ef81a50693ad2db8ba845ef Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Mon, 10 Mar 2008 10:13:31 +0000
Subject: [PATCH] [GFS2] Remove drop of module ref where not needed

In an earlier patch "[GFS2] fix file_system_type leak on gfs2meta mount" we removed the code to grab a ref to the module which was not needed (since we know that the module cannot be unloaded at that time) so this patch removes the code to drop that reference.

fs/gfs2/ops_fstype.c +0 -1
index 4fac9d2..a6fa738 100644
@@ -997,7 +997,6 @@ static int gfs2_get_sb_meta(struct file_system_type *fs_type, int flags,
 		error = PTR_ERR(new);
 		goto error;
 	}
-	module_put(fs_type->owner);
 	new->s_flags = flags;
 	strlcpy(new->s_id, sb->s_id, sizeof(new->s_id));
 	sb_set_blocksize(new, sb->s_blocksize);
Signature · 1 line
1.5.1.2