Commit 860b25d4a913a00331d333f8e207a088c7a1b84a

Authored by Steven Whitehouse
1 parent 20b95bf2c4

[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.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

fs/gfs2/ops_fstype.c
... ... @@ -998,7 +998,6 @@
998 998 error = PTR_ERR(new);
999 999 goto error;
1000 1000 }
1001   - module_put(fs_type->owner);
1002 1001 new->s_flags = flags;
1003 1002 strlcpy(new->s_id, sb->s_id, sizeof(new->s_id));
1004 1003 sb_set_blocksize(new, sb->s_blocksize);