From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752652AbbJFOoO (ORCPT ); Tue, 6 Oct 2015 10:44:14 -0400 Received: from ou.quest-ce.net ([195.154.187.82]:42771 "EHLO ou.quest-ce.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752132AbbJFOoL (ORCPT ); Tue, 6 Oct 2015 10:44:11 -0400 Message-ID: <1444142631.3188.53.camel@opteya.com> From: Yann Droneaud To: Gabriel Laskar , Dave Chinner , Ashish Sangwan , Namjae Jeon , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Cc: Greg Kroah-Hartman Date: Tue, 06 Oct 2015 16:43:51 +0200 In-Reply-To: <1444141657-14898-4-git-send-email-gabriel@lse.epita.fr> References: <1444141657-14898-1-git-send-email-gabriel@lse.epita.fr> <1444141657-14898-4-git-send-email-gabriel@lse.epita.fr> Organization: OPTEYA Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 (3.16.5-3.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 77.154.202.129 X-SA-Exim-Mail-From: ydroneaud@opteya.com Subject: Re: [PATCH v2 3/3] falloc: expose ioctl numbers into uapi X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ou.quest-ce.net) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le mardi 06 octobre 2015 à 16:27 +0200, Gabriel Laskar a écrit : > Signed-off-by: Gabriel Laskar > --- > > v2: missed the include of > > include/linux/falloc.h | 18 ------------------ > include/uapi/linux/falloc.h | 20 ++++++++++++++++++++ > 2 files changed, 20 insertions(+), 18 deletions(-) > > diff --git a/include/uapi/linux/falloc.h > b/include/uapi/linux/falloc.h > index 3e445a7..28abee4 100644 > --- a/include/uapi/linux/falloc.h > +++ b/include/uapi/linux/falloc.h > @@ -1,6 +1,8 @@ > #ifndef _UAPI_FALLOC_H_ > #define _UAPI_FALLOC_H_ > > +#include > + You should also add #include for _IOW() macro > #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ > #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */ > #define FALLOC_FL_NO_HIDE_STALE 0x04 /* reserved codepoint */ > @@ -58,4 +60,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_ */ Regards. -- Yann Droneaud OPTEYA