NFS: Call nfs_probe_server() during a fscontext-reconfigure event

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2049200

commit 1301ba603ca519f9191eae68ee59a2d1165b3458
Author: Anna Schumaker <Anna.Schumaker@Netapp.com>
Date:   Thu Oct 14 13:55:07 2021 -0400

    NFS: Call nfs_probe_server() during a fscontext-reconfigure event

    This lets us update the server's attributes when the user does a "mount
    -o remount" on the filesystem.

    Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
This commit is contained in:
Scott Mayhew 2022-01-21 13:52:25 -05:00
parent 14a7c6428d
commit 9c84205b79
1 changed files with 6 additions and 1 deletions

View File

@ -1004,6 +1004,7 @@ int nfs_reconfigure(struct fs_context *fc)
struct nfs_fs_context *ctx = nfs_fc2context(fc);
struct super_block *sb = fc->root->d_sb;
struct nfs_server *nfss = sb->s_fs_info;
int ret;
sync_filesystem(sb);
@ -1028,7 +1029,11 @@ int nfs_reconfigure(struct fs_context *fc)
}
/* compare new mount options with old ones */
return nfs_compare_remount_data(nfss, ctx);
ret = nfs_compare_remount_data(nfss, ctx);
if (ret)
return ret;
return nfs_probe_server(nfss, NFS_FH(d_inode(fc->root)));
}
EXPORT_SYMBOL_GPL(nfs_reconfigure);