mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-27 04:32:16 +03:00
Re-share zfsdev_getminor and zfs_onexit_fd_hold
By adding a zfs_file_private accessor to the common interfaces and some extensions to FreeBSD platform code it is now possible to share the implementations for the aforementioned functions. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10073
This commit is contained in:
@@ -373,6 +373,19 @@ zfs_file_off(zfs_file_t *fp)
|
||||
return (fp->f_pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* Request file pointer private data
|
||||
*
|
||||
* fp - pointer to file
|
||||
*
|
||||
* Returns pointer to file private data.
|
||||
*/
|
||||
void *
|
||||
zfs_file_private(zfs_file_t *fp)
|
||||
{
|
||||
return (fp->private_data);
|
||||
}
|
||||
|
||||
/*
|
||||
* unlink file
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user