X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fzpl_super.c;fp=module%2Fzfs%2Fzpl_super.c;h=6524a65ef9b056e298d56b931e4fe398ed89a70d;hb=0de19dad9cbca9ac89aea1c7742f131713ef8012;hp=73e5268f5107421b52fd8841673472b659561a59;hpb=03f9ba9d990efb911026ebee0902671915db01a3;p=zfs.git diff --git a/module/zfs/zpl_super.c b/module/zfs/zpl_super.c index 73e5268..6524a65 100644 --- a/module/zfs/zpl_super.c +++ b/module/zfs/zpl_super.c @@ -130,6 +130,16 @@ zpl_statfs(struct dentry *dentry, struct kstatfs *statp) } static int +zpl_remount_fs(struct super_block *sb, int *flags, char *data) +{ + int error; + error = -zfs_remount(sb, flags, data); + ASSERT3S(error, <=, 0); + + return (error); +} + +static int zpl_show_options(struct seq_file *seq, struct vfsmount *vfsp) { struct super_block *sb = vfsp->mnt_sb; @@ -197,7 +207,7 @@ const struct super_operations zpl_super_operations = { .freeze_fs = NULL, .unfreeze_fs = NULL, .statfs = zpl_statfs, - .remount_fs = NULL, + .remount_fs = zpl_remount_fs, .show_options = zpl_show_options, .show_stats = NULL, };