diff options
author | Matthew Macy <[email protected]> | 2019-10-16 18:43:52 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-16 18:43:52 -0700 |
commit | 08f530c6996a41c1050a11fc5b02b31a6b68fe45 (patch) | |
tree | 562b0632edee2a6353e486f2b4da62ccf1e23954 /module/zfs | |
parent | 0e939e434a254224907cc379a0e7039984221500 (diff) |
Make zfsdev_getminor signature cross platform
Only pass the file descriptor to make zfsdev_get_miror() portable.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9466
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/fm.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/module/zfs/fm.c b/module/zfs/fm.c index 98a844820..722855492 100644 --- a/module/zfs/fm.c +++ b/module/zfs/fm.c @@ -582,14 +582,9 @@ zfs_zevent_minor_to_state(minor_t minor, zfs_zevent_t **ze) int zfs_zevent_fd_hold(int fd, minor_t *minorp, zfs_zevent_t **ze) { - file_t *fp; int error; - fp = getf(fd); - if (fp == NULL) - return (SET_ERROR(EBADF)); - - error = zfsdev_getminor(fp->f_file, minorp); + error = zfsdev_getminor(fd, minorp); if (error == 0) error = zfs_zevent_minor_to_state(*minorp, ze); |