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 #8765
  • Loading branch information
kusumi authored and tonyhutter committed Sep 17, 2019
1 parent f8cfc1d commit 77fd233
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/zfs/zfs_ctldir.c
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 77fd233

Please sign in to comment.