• Andrew Price's avatar
    gfs2: Fix initialisation of args for remount · d5798141
    Andrew Price authored
    When gfs2 was converted to use fs_context, the initialisation of the
    mount args structure to the currently active args was lost with the
    removal of gfs2_remount_fs(), so the checks of the new args on remount
    became checks against the default values instead of the current ones.
    This caused unexpected remount behaviour and test failures (xfstests
    generic/294, generic/306 and generic/452).
    
    Reinstate the args initialisation, this time in gfs2_init_fs_context()
    and conditional upon fc->purpose, as that's the only time we get control
    before the mount args are parsed in the remount process.
    
    Fixes: 1f52aa08 ("gfs2: Convert gfs2 to fs_context")
    Signed-off-by: default avatarAndrew Price <anprice@redhat.com>
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    d5798141
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
acl.c Loading commit data...
acl.h Loading commit data...
aops.c Loading commit data...
aops.h Loading commit data...
bmap.c Loading commit data...
bmap.h Loading commit data...
dentry.c Loading commit data...
dir.c Loading commit data...
dir.h Loading commit data...
export.c Loading commit data...
file.c Loading commit data...
gfs2.h Loading commit data...
glock.c Loading commit data...
glock.h Loading commit data...
glops.c Loading commit data...
glops.h Loading commit data...
incore.h Loading commit data...
inode.c Loading commit data...
inode.h Loading commit data...
lock_dlm.c Loading commit data...
log.c Loading commit data...
log.h Loading commit data...
lops.c Loading commit data...
lops.h Loading commit data...
main.c Loading commit data...
meta_io.c Loading commit data...
meta_io.h Loading commit data...
ops_fstype.c Loading commit data...
quota.c Loading commit data...
quota.h Loading commit data...
recovery.c Loading commit data...
recovery.h Loading commit data...
rgrp.c Loading commit data...
rgrp.h Loading commit data...
super.c Loading commit data...
super.h Loading commit data...
sys.c Loading commit data...
sys.h Loading commit data...
trace_gfs2.h Loading commit data...
trans.c Loading commit data...
trans.h Loading commit data...
util.c Loading commit data...
util.h Loading commit data...
xattr.c Loading commit data...
xattr.h Loading commit data...