]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Drop local definition of MOUNT_BUSY
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 24 May 2019 23:43:23 +0000 (08:43 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 May 2019 23:43:23 +0000 (16:43 -0700)
It's accessible via <sys/mntent.h>.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #8765

module/zfs/zfs_ctldir.c

index 46e6e19b91d57871a589c40639169501bd6e9668..c8071a7c215f9960b1d31d10a3caa2766f3faa41 100644 (file)
@@ -85,6 +85,7 @@
 #include <sys/dsl_destroy.h>
 #include <sys/dsl_deleg.h>
 #include <sys/zpl.h>
+#include <sys/mntent.h>
 #include "zfs_namecheck.h"
 
 /*
@@ -1047,8 +1048,6 @@ zfsctl_snapshot_unmount(char *snapname, int flags)
        return (error);
 }
 
-#define        MOUNT_BUSY 0x80         /* Mount failed due to EBUSY (from mntent.h) */
-
 int
 zfsctl_snapshot_mount(struct path *path, int flags)
 {