summaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev_disk.c
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2019-01-10 15:28:44 -0800
committerBrian Behlendorf <[email protected]>2019-01-28 10:11:39 -0800
commit05805494dd7ea3b2fbb34ac031c338a8bc0bab62 (patch)
tree72bfab82e491ca1d82391aba9dd73d438da03e2f /module/zfs/vdev_disk.c
parent031cea17a3db1dae3b6968a8c71bcfb678a03235 (diff)
Linux 5.0 compat: Convert MS_* macros to SB_*
In the 5.0 kernel, only the mount namespace code should use the MS_* macos. Filesystems should use the SB_* ones. https://patchwork.kernel.org/patch/10552493/ Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #8264
Diffstat (limited to 'module/zfs/vdev_disk.c')
-rw-r--r--module/zfs/vdev_disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c
index d13f365dd..c53a0aa0f 100644
--- a/module/zfs/vdev_disk.c
+++ b/module/zfs/vdev_disk.c
@@ -35,6 +35,7 @@
#include <sys/zio.h>
#include <linux/mod_compat.h>
#include <linux/msdos_fs.h>
+#include <linux/vfs_compat.h>
char *zfs_vdev_scheduler = VDEV_SCHEDULER;
static void *zfs_vdev_holder = VDEV_HOLDER;
@@ -79,7 +80,7 @@ vdev_bdev_mode(int smode)
ASSERT3S(smode & (FREAD | FWRITE), !=, 0);
if ((smode & FREAD) && !(smode & FWRITE))
- mode = MS_RDONLY;
+ mode = SB_RDONLY;
return (mode);
}