From patchwork Wed Apr 26 06:39:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chandan Rajendra X-Patchwork-Id: 9700335 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 1A1F4603F4 for ; Wed, 26 Apr 2017 06:39:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08E9328438 for ; Wed, 26 Apr 2017 06:39:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1BA8284EA; Wed, 26 Apr 2017 06:39:29 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 943A328438 for ; Wed, 26 Apr 2017 06:39:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1956144AbdDZGj3 (ORCPT ); Wed, 26 Apr 2017 02:39:29 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44626 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1956143AbdDZGj2 (ORCPT ); Wed, 26 Apr 2017 02:39:28 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v3Q6cmbb049960 for ; Wed, 26 Apr 2017 02:39:27 -0400 Received: from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202]) by mx0b-001b2d01.pphosted.com with ESMTP id 2a2ebu1jrt-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 26 Apr 2017 02:39:27 -0400 Received: from localhost by e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 26 Apr 2017 02:39:26 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 26 Apr 2017 02:39:24 -0400 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v3Q6dOYR42664140; Wed, 26 Apr 2017 06:39:24 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5E2632803F; Wed, 26 Apr 2017 02:39:19 -0400 (EDT) Received: from localhost.in.ibm.com (unknown [9.199.32.184]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP id 126A42803D; Wed, 26 Apr 2017 02:39:17 -0400 (EDT) From: Chandan Rajendra To: linux-xfs@vger.kernel.org Cc: Chandan Rajendra , sandeen@redhat.com Subject: [PATCH] xfs_io: Add statx support for PowerPC architecture Date: Wed, 26 Apr 2017 12:09:18 +0530 X-Mailer: git-send-email 2.5.5 X-TM-AS-GCONF: 00 x-cbid: 17042606-0048-0000-0000-0000016B0EE8 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006975; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000208; SDB=6.00852602; UDB=6.00421458; IPR=6.00631439; BA=6.00005313; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015180; XFM=3.00000013; UTC=2017-04-26 06:39:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17042606-0049-0000-0000-000040CC7DAC Message-Id: <1493188758-3173-1-git-send-email-chandan@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-04-26_04:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704260119 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Linux kernel commit f717629c7f834ab2efa05c7dbf0826f1d7c32ade (powerpc: Wire up statx() syscall) added support for statx syscall for PowerPC architecture. This commit enables using 'statx' sub-command of xfs_io to be used on PowerPC. Signed-off-by: Chandan Rajendra Reviewed-by: Christoph Hellwig Reviewed-by: Eric Sandeen --- This patch is based on Eric's "xfs_io: fix statx definition for non-x86 architecture" patch. io/statx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/statx.h b/io/statx.h index eea7944..14361a8 100644 --- a/io/statx.h +++ b/io/statx.h @@ -16,7 +16,7 @@ #endif #ifndef __NR_statx -# ifdef __i386__ +# if defined(__i386__) || defined(__powerpc__) # define __NR_statx 383 # elif defined (__x86_64__) # if defined (__ILP32__)