diff options
author | Brian Behlendorf <[email protected]> | 2011-03-15 12:41:19 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-03-15 13:33:29 -0700 |
commit | 0de19dad9cbca9ac89aea1c7742f131713ef8012 (patch) | |
tree | 34838cb31a2bcb2a80848adb05a7a065ce328554 /module/zfs/zpl_super.c | |
parent | 03f9ba9d990efb911026ebee0902671915db01a3 (diff) |
Register .remount_fs handler
Register the missing .remount_fs handler. This handler isn't strictly
required because the VFS does a pretty good job updating most of the
MS_* flags. However, there's no harm in using the hook to call the
registered zpl callback for various MS_* flags. Additionaly, this
allows us to lay the ground work for more complicated argument parsing
in the future.
Diffstat (limited to 'module/zfs/zpl_super.c')
-rw-r--r-- | module/zfs/zpl_super.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/module/zfs/zpl_super.c b/module/zfs/zpl_super.c index 73e5268f5..6524a65ef 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, }; |