From patchwork Sun Jun 10 05:07:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allison Henderson X-Patchwork-Id: 10456571 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 0B7AA6020F for ; Sun, 10 Jun 2018 05:10:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0CC9251F9 for ; Sun, 10 Jun 2018 05:10:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E459F25D9E; Sun, 10 Jun 2018 05:10:30 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY 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 81F6A251F9 for ; Sun, 10 Jun 2018 05:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932163AbeFJFK3 (ORCPT ); Sun, 10 Jun 2018 01:10:29 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:49384 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932183AbeFJFK1 (ORCPT ); Sun, 10 Jun 2018 01:10:27 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5A576PG141684 for ; Sun, 10 Jun 2018 05:10:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=t2AhSer/jn8U8tjGPK4YwumD+44I8Xzxw8CQIcX1L1o=; b=rE2yAL6x5SeyBDTs0D/Gku8wdnDUKVqOQUYh19IoMzOENrOtZQUiKQ2T/I5dmHlij60b QuO/uHLlys1+vt0YrgUnhTolJ9etl9O9wNukzYnHEJMd7R7OqOXcnEq3q6J7R+QuYMPY mx2qGw50BuEa1dRLE3w8LcKawJfvhM5g7wwZvF/teOQyq/SEbAXD0FBJzZX6SmhFWrwa AUUDn4DZMHvWgSUIlgbNTNBmPYT//htPksD5F/nwWYpiYAV8NX/33bkiYu5huCzv2kan cal0g+LudlgLnAPCOTL3I1gKBNiHfu+EFy3KW+c2c1wZQQPAAo3eOIUiN4o8iYB64Rzk uQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2jgecx94pv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 10 Jun 2018 05:10:26 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5A5AQDE004859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 10 Jun 2018 05:10:26 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5A5AQe5001557 for ; Sun, 10 Jun 2018 05:10:26 GMT Received: from localhost.localdomain (/72.210.40.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 09 Jun 2018 22:10:26 -0700 From: Allison Henderson To: linux-xfs@vger.kernel.org Subject: [PATCH v2 27/27] xfsprogs: Clean up old parent pointer definitions Date: Sat, 9 Jun 2018 22:07:52 -0700 Message-Id: <1528607272-11122-28-git-send-email-allison.henderson@oracle.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528607272-11122-1-git-send-email-allison.henderson@oracle.com> References: <1528607272-11122-1-git-send-email-allison.henderson@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8919 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=885 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806100059 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 Existing parent pointer stubs and structs are not used in this implementation. Remove uneeded definitions. Signed-off-by: Allison Henderson --- include/parent.h | 10 ---------- libhandle/handle.c | 26 -------------------------- libhandle/jdm.c | 20 -------------------- 3 files changed, 56 deletions(-) diff --git a/include/parent.h b/include/parent.h index 33f8d85..5665d64 100644 --- a/include/parent.h +++ b/include/parent.h @@ -18,16 +18,6 @@ #ifndef __PARENT_H__ #define __PARENT_H__ -typedef struct parent { - __u64 p_ino; - __u32 p_gen; - __u16 p_reclen; -} parent_t; - -typedef struct parent_cursor { - __u32 opaque[4]; /* an opaque cookie */ -} parent_cursor_t; - struct path_list; typedef int (*walk_pptr_fn)(struct xfs_pptr_info *pi, struct xfs_parent_ptr *pptr, diff --git a/libhandle/handle.c b/libhandle/handle.c index a70fa32..862b943 100644 --- a/libhandle/handle.c +++ b/libhandle/handle.c @@ -20,7 +20,6 @@ #include "platform_defs.h" #include "xfs.h" #include "handle.h" -#include "parent.h" /* just pick a value we know is more than big enough */ #define MAXHANSIZ 64 @@ -422,31 +421,6 @@ attr_list_by_handle( } int -parents_by_handle( - void *hanp, - size_t hlen, - parent_t *buf, - size_t bufsiz, - unsigned int *count) - -{ - errno = EOPNOTSUPP; - return -1; -} - -int -parentpaths_by_handle( - void *hanp, - size_t hlen, - parent_t *buf, - size_t bufsiz, - unsigned int *count) -{ - errno = EOPNOTSUPP; - return -1; -} - -int fssetdm_by_handle( void *hanp, size_t hlen, diff --git a/libhandle/jdm.c b/libhandle/jdm.c index 821061b..0c2440b 100644 --- a/libhandle/jdm.c +++ b/libhandle/jdm.c @@ -20,7 +20,6 @@ #include "xfs.h" #include "handle.h" #include "jdm.h" -#include "parent.h" /* internal fshandle - typecast to a void for external use */ #define FSHANDLE_SZ 8 @@ -178,22 +177,3 @@ jdm_attr_list( jdm_fshandle_t *fshp, return rval; } -int -jdm_parents( jdm_fshandle_t *fshp, - xfs_bstat_t *statp, - parent_t *bufp, size_t bufsz, - unsigned int *count) -{ - errno = EOPNOTSUPP; - return -1; -} - -int -jdm_parentpaths( jdm_fshandle_t *fshp, - xfs_bstat_t *statp, - parent_t *bufp, size_t bufsz, - unsigned int *count) -{ - errno = EOPNOTSUPP; - return -1; -}