/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _FALLOC_H_ #define _FALLOC_H_ #include <uapi/linux/falloc.h> /* * Space reservation ioctls and argument structure * are designed to be compatible with the legacy XFS ioctls. */ struct space_resv { … }; #define FS_IOC_RESVSP … #define FS_IOC_UNRESVSP … #define FS_IOC_RESVSP64 … #define FS_IOC_UNRESVSP64 … #define FS_IOC_ZERO_RANGE … /* * Mask of all supported fallocate modes. Only one can be set at a time. * * In addition to the mode bit, the mode argument can also encode flags. * FALLOC_FL_KEEP_SIZE is the only supported flag so far. */ #define FALLOC_FL_MODE_MASK … /* on ia32 l_start is on a 32-bit boundary */ #if defined(CONFIG_X86_64) struct space_resv_32 { … }; #define FS_IOC_RESVSP_32 … #define FS_IOC_UNRESVSP_32 … #define FS_IOC_RESVSP64_32 … #define FS_IOC_UNRESVSP64_32 … #define FS_IOC_ZERO_RANGE_32 … #endif #endif /* _FALLOC_H_ */