From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbbJEOub (ORCPT ); Mon, 5 Oct 2015 10:50:31 -0400 Received: from 195-154-87-184.rev.poneytelecom.eu ([195.154.87.184]:42160 "EHLO gaby.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751959AbbJEOu3 (ORCPT ); Mon, 5 Oct 2015 10:50:29 -0400 From: Gabriel Laskar To: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Dave Chinner , Ashish Sangwan , Gabriel Laskar , Namjae Jeon Cc: Greg Kroah-Hartman Subject: [PATCH 3/3] falloc: expose ioctl numbers into uapi Date: Mon, 5 Oct 2015 16:50:11 +0200 Message-Id: <1444056611-7513-4-git-send-email-gabriel@lse.epita.fr> X-Mailer: git-send-email 2.6.0 In-Reply-To: <1444056611-7513-1-git-send-email-gabriel@lse.epita.fr> References: <1444056611-7513-1-git-send-email-gabriel@lse.epita.fr> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Gabriel Laskar --- include/linux/falloc.h | 18 ------------------ include/uapi/linux/falloc.h | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/include/linux/falloc.h b/include/linux/falloc.h index 9961110..eb651e9 100644 --- a/include/linux/falloc.h +++ b/include/linux/falloc.h @@ -3,24 +3,6 @@ #include - -/* - * Space reservation ioctls and argument structure - * are designed to be compatible with the legacy XFS ioctls. - */ -struct space_resv { - __s16 l_type; - __s16 l_whence; - __s64 l_start; - __s64 l_len; /* len == 0 means until end of file */ - __s32 l_sysid; - __u32 l_pid; - __s32 l_pad[4]; /* reserved area */ -}; - -#define FS_IOC_RESVSP _IOW('X', 40, struct space_resv) -#define FS_IOC_RESVSP64 _IOW('X', 42, struct space_resv) - #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \ FALLOC_FL_PUNCH_HOLE | \ FALLOC_FL_COLLAPSE_RANGE | \ diff --git a/include/uapi/linux/falloc.h b/include/uapi/linux/falloc.h index 3e445a7..99cd0ea 100644 --- a/include/uapi/linux/falloc.h +++ b/include/uapi/linux/falloc.h @@ -58,4 +58,22 @@ */ #define FALLOC_FL_INSERT_RANGE 0x20 + +/* + * Space reservation ioctls and argument structure + * are designed to be compatible with the legacy XFS ioctls. + */ +struct space_resv { + __s16 l_type; + __s16 l_whence; + __s64 l_start; + __s64 l_len; /* len == 0 means until end of file */ + __s32 l_sysid; + __u32 l_pid; + __s32 l_pad[4]; /* reserved area */ +}; + +#define FS_IOC_RESVSP _IOW('X', 40, struct space_resv) +#define FS_IOC_RESVSP64 _IOW('X', 42, struct space_resv) + #endif /* _UAPI_FALLOC_H_ */ -- 2.6.0