Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1582937rwn; Fri, 9 Sep 2022 00:10:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR482sslZAdO1Ob89d7vcS4iMhCxAU+ps9GraDkJjsEJQyPprxLLbr7HcXJoUxb9FUz3UYyq X-Received: by 2002:a05:651c:110a:b0:26b:db70:530d with SMTP id e10-20020a05651c110a00b0026bdb70530dmr1708809ljo.493.1662707456488; Fri, 09 Sep 2022 00:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662707456; cv=none; d=google.com; s=arc-20160816; b=JYs0M+MmnqbRkt+n9nS/OsA78UAzDsJhzvZo+WbMv3/Ht4jGH4NSdrPQAYLzgs/voT 7v4uF1YzN+T+xmR+JvK1Mgg1ObhHt+fG/WfGqcDsTedHXKMyM9XnyPeSEoIn0E3Df0Cm 8gcOS6le0/PYM/jxhPWC0DKWaEfk8Cp7mDZM39fhC5PQnuDoq8S5VEimOXKB/SOmvsh4 SzhbL/mX6+K5q5SYSLixuobwPEb6GK+ONmxmIvifB/fqGpISZxV9aKSdVx6H8XpHWNOe dV4jAZDfRVrR5QD9ifLncn1M0BT2Ez+hNDl7o0uChNwNiaZHUNS2F6DYvqKdKLOgEps5 fcLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=IjvRVqotVXPfZd9ZWAmeZyN6vnFNspcvGSxA9E9t8zA=; b=RZ1sPxYjmP+1QLwbgZcpGQfLTUGMB8aihKEP3Fy+pVkWukb4xmAq15Zy9x3KhQklGc Dszbi0mAAdzcqM3oKbCg2ZbX1X3cAS2bpa11mgmw0U8dDvmV6Pqorei4OyxNIyKL4hih v8Lei4OvqK71uDkCAlKDdBlZPDzwL7n2Y5kEIk/fxntw85xkuAYg6KYlhDOy0Mn8+56l bi4G6CUps5bOKvHOIiHnuMb9LHgeCuocckPsLZmYMaquL1sM5xj0OfjajYOORjlw4lRt 3suijNvhDNy/pB3NP7zZb/okwkuAmDxa7DSmI8qIUpyJkvhpRQukVtXGFBQsu8bDPOXH 8FXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a2ebd05000000b0025e4c3d5d6asi476998ljq.498.2022.09.09.00.10.26; Fri, 09 Sep 2022 00:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbiIIGvB (ORCPT + 99 others); Fri, 9 Sep 2022 02:51:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbiIIGu7 (ORCPT ); Fri, 9 Sep 2022 02:50:59 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE1DC1023FD for ; Thu, 8 Sep 2022 23:50:58 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MP65K0Kq7znVDq; Fri, 9 Sep 2022 14:48:21 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 14:50:56 +0800 From: Gaosheng Cui To: , , CC: , Subject: [PATCH] jfs: remove unused declarations for jfs Date: Fri, 9 Sep 2022 14:50:55 +0800 Message-ID: <20220909065055.1154080-1-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org extRealloc(), xtRelocate(), xtDelete() and extFill() have been removed since commit e471e5942c00 ("fs/jfs: Remove dead code"), so remove them. Signed-off-by: Gaosheng Cui --- fs/jfs/jfs_extent.h | 2 -- fs/jfs/jfs_xtree.h | 4 ---- 2 files changed, 6 deletions(-) diff --git a/fs/jfs/jfs_extent.h b/fs/jfs/jfs_extent.h index 1c984214e95e..a0ee4ccea66e 100644 --- a/fs/jfs/jfs_extent.h +++ b/fs/jfs/jfs_extent.h @@ -10,9 +10,7 @@ (addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1) extern int extAlloc(struct inode *, s64, s64, xad_t *, bool); -extern int extFill(struct inode *, xad_t *); extern int extHint(struct inode *, s64, xad_t *); -extern int extRealloc(struct inode *, s64, xad_t *, bool); extern int extRecord(struct inode *, xad_t *); #endif /* _H_JFS_EXTENT */ diff --git a/fs/jfs/jfs_xtree.h b/fs/jfs/jfs_xtree.h index 142caafc73b1..ad7592191d76 100644 --- a/fs/jfs/jfs_xtree.h +++ b/fs/jfs/jfs_xtree.h @@ -96,12 +96,8 @@ extern int xtInsert(tid_t tid, struct inode *ip, extern int xtExtend(tid_t tid, struct inode *ip, s64 xoff, int xlen, int flag); extern int xtUpdate(tid_t tid, struct inode *ip, struct xad *nxad); -extern int xtDelete(tid_t tid, struct inode *ip, s64 xoff, int xlen, - int flag); extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type); extern s64 xtTruncate_pmap(tid_t tid, struct inode *ip, s64 committed_size); -extern int xtRelocate(tid_t tid, struct inode *ip, - xad_t * oxad, s64 nxaddr, int xtype); extern int xtAppend(tid_t tid, struct inode *ip, int xflag, s64 xoff, int maxblocks, int *xlenp, s64 * xaddrp, int flag); -- 2.25.1