Skip to content

Commit

Permalink
Drop local definition of MOUNT_BUSY
Browse files Browse the repository at this point in the history
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 openzfs#8765
  • Loading branch information
kusumi authored and allanjude committed Jun 7, 2019
1 parent deb81ca commit 1ebd1f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/os/linux/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/*
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 1ebd1f8

Please sign in to comment.