From patchwork Sun Aug 7 05:52:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Janda X-Patchwork-Id: 9278539 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C16F60231 for ; Sat, 13 Aug 2016 17:26:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CDB528971 for ; Sat, 13 Aug 2016 17:26:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01AC728A83; Sat, 13 Aug 2016 17:26:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from oss.sgi.com (oss.sgi.com [192.48.182.195]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9E19E28971 for ; Sat, 13 Aug 2016 17:26:48 +0000 (UTC) Received: from oss.sgi.com (localhost [IPv6:::1]) by oss.sgi.com (Postfix) with ESMTP id 635FF7CDA; Sat, 13 Aug 2016 12:26:07 -0500 (CDT) X-Original-To: xfs@oss.sgi.com Delivered-To: xfs@oss.sgi.com Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id 33EBE7CD7 for ; Sat, 13 Aug 2016 12:26:06 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay1.corp.sgi.com (Postfix) with ESMTP id ED34D8F8033 for ; Sat, 13 Aug 2016 10:26:05 -0700 (PDT) X-ASG-Debug-ID: 1471109163-0bf57c136a5d7eb0001-NocioJ Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by cuda.sgi.com with ESMTP id OdIAUJyYMY4XMD85 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 13 Aug 2016 10:26:04 -0700 (PDT) X-Barracuda-Envelope-From: felix.janda@posteo.de X-Barracuda-Effective-Source-IP: mout02.posteo.de[185.67.36.66] X-Barracuda-Apparent-Source-IP: 185.67.36.66 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 69C8F20068 for ; Sat, 13 Aug 2016 19:26:03 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3sBTDp6cgrzydk for ; Sat, 13 Aug 2016 19:26:02 +0200 (CEST) Resent-From: Felix Janda Resent-Date: Sat, 13 Aug 2016 19:25:06 +0200 Resent-Message-ID: <20160813172506.GL3858@nyan> Resent-To: xfs@oss.sgi.com Message-Id: <8c3a172343f01752db2510c3374a904591708728.1471107858.git.felix.janda@posteo.de> In-Reply-To: References: From: Felix Janda Date: Sun, 7 Aug 2016 07:52:09 +0200 Subject: [PATCHv2 xfsprogs 14/14] platform: remove use of off64_t To: xfs@oss.sgi.com X-ASG-Orig-Subj: [PATCHv2 xfsprogs 14/14] platform: remove use of off64_t X-Barracuda-Connect: mout02.posteo.de[185.67.36.66] X-Barracuda-Start-Time: 1471109164 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://192.48.176.15:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1877 X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.31987 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: xfs@oss.sgi.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com X-Virus-Scanned: ClamAV using ClamSMTP Since we force transparent LFS it can be replaced by off_t. Signed-off-by: Felix Janda Reviewed-by: Christoph Hellwig --- include/darwin.h | 1 - include/freebsd.h | 1 - include/irix.h | 2 +- include/linux.h | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/darwin.h b/include/darwin.h index 495b44b..418d90a 100644 --- a/include/darwin.h +++ b/include/darwin.h @@ -134,7 +134,6 @@ typedef signed long long int __s64; #define __uint16_t u_int16_t #define __uint32_t u_int32_t #define __uint64_t u_int64_t -#define off64_t off_t typedef off_t xfs_off_t; typedef u_int64_t xfs_ino_t; diff --git a/include/freebsd.h b/include/freebsd.h index df924ef..93a9204 100644 --- a/include/freebsd.h +++ b/include/freebsd.h @@ -41,7 +41,6 @@ #define EFSBADCRC 991 /* Bad CRC detected */ typedef off_t xfs_off_t; -typedef off_t off64_t; typedef __uint64_t xfs_ino_t; typedef __uint32_t xfs_dev_t; typedef __int64_t xfs_daddr_t; diff --git a/include/irix.h b/include/irix.h index b92e01b..a212505 100644 --- a/include/irix.h +++ b/include/irix.h @@ -43,7 +43,7 @@ #define __int16_t short #define __uint8_t unsigned char #define __uint16_t unsigned short -typedef off64_t xfs_off_t; +typedef off_t xfs_off_t; typedef __int64_t xfs_ino_t; typedef __int32_t xfs_dev_t; typedef __int64_t xfs_daddr_t; diff --git a/include/linux.h b/include/linux.h index 5614719..ed388ea 100644 --- a/include/linux.h +++ b/include/linux.h @@ -137,7 +137,7 @@ platform_discard_blocks(int fd, uint64_t start, uint64_t len) #define EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */ #define EFSBADCRC EBADMSG /* Bad CRC detected */ -typedef off64_t xfs_off_t; +typedef off_t xfs_off_t; typedef __uint64_t xfs_ino_t; typedef __uint32_t xfs_dev_t; typedef __int64_t xfs_daddr_t;