mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Consolidate zfs_holey and zfs_access
The zfs_holey() and zfs_access() functions can be made common to both FreeBSD and Linux. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #11125
This commit is contained in:
committed by
Tony Hutter
parent
073f3c7826
commit
a909190683
@@ -52,6 +52,12 @@
|
||||
|
||||
#define F_FREESP 11 /* Free file space */
|
||||
|
||||
|
||||
#if defined(SEEK_HOLE) && defined(SEEK_DATA)
|
||||
#define F_SEEK_DATA SEEK_DATA
|
||||
#define F_SEEK_HOLE SEEK_HOLE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The vnode AT_ flags are mapped to the Linux ATTR_* flags.
|
||||
* This allows them to be used safely with an iattr structure.
|
||||
|
||||
Reference in New Issue
Block a user