[GFS2] Remove drop of module ref where not needed
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 10 Mar 2008 10:13:31 +0000 (10:13 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:41:33 +0000 (10:41 +0100)
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.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_fstype.c

index 63d5fd203d3f6866c2c7bc8cdb8a5fe9052f1043..5b518f73497a64ba15a7f180b1279e0b0cb4b08a 100644 (file)
@@ -998,7 +998,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);