Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1655905rwb; Mon, 7 Nov 2022 04:23:45 -0800 (PST) X-Google-Smtp-Source: AMsMyM7qMj7c2Dx3tYVqAQzIwQuNQskaS3vGsrEZaCXK7p+6z8iiGaHCB7B5ce/Mg5z/Da8f/siO X-Received: by 2002:aa7:d91a:0:b0:462:d2f6:26c6 with SMTP id a26-20020aa7d91a000000b00462d2f626c6mr51511547edr.180.1667823825697; Mon, 07 Nov 2022 04:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667823825; cv=none; d=google.com; s=arc-20160816; b=Oi51YttfSuqXn9IuSeUc5fQzPFujCgsBmSZCgEdZDSSY+7cNB3STRSUejpEMHHE2JR LdGWGkzyNp5xrLfriWTl+MuPHgQxVHkbzU5NIJST7nwnp62EY8+lTFgLtOSfD2iFnJey 9M/gVJQFTdcTw0KZ/Z3DZx7z7fnORVSgFwGMzhCDNVo8i+kmG4TeEWvOeRS09ubrT1oU BtPHchd946kHE9Z9yXEehmD716XAgXm/eljazzUap0imG7UGkZPqffs2Q+sULD+M2xx2 IaixLIG1Bc12Hi6IcQ3REtTqwiLKbvLczzSo1EAjRYGg5+tg/VAcDUhDQ40KTQE7GgzN J2aQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ymBX60LUOuBsP+vRhvxq6pMPtRa4aOay12HNgYBIPk8=; b=wrz5ra2UHIDeli8AArxeBdjeb07p87E8CaVFsc+AJ4/7JX1Z7rGtmrYny2CXEZPZEE mO4qHJqUb0EDxfSDXUh9zWwBBpwTcxqieDeL5nIfSPNPd/XCMwVUu2EW0buONqfm9i7Z gAFeHz0aKGvigQfMpVDR57Xoe6HOCLWz69Zq3rdl3VpqTcdzGo3vFf/DdSRLvd9MsYG4 6cmZ29CQMQ83KByX97qXQzMkeQsAnTdR2uPmRE7QBtEpGDXWou+tDWGB8HIG/j+nxEhD xI93SAX+qWQi/9tek808/OAOuI04cMcq75RiMFmEOf8rlSm7tJ0XzFbL8zXboLLRr5sb 4UrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="S/Z5s8P8"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt18-20020a170907729200b0073d710fec77si9543477ejc.251.2022.11.07.04.23.21; Mon, 07 Nov 2022 04:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="S/Z5s8P8"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbiKGMWs (ORCPT + 99 others); Mon, 7 Nov 2022 07:22:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbiKGMWs (ORCPT ); Mon, 7 Nov 2022 07:22:48 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95076633D for ; Mon, 7 Nov 2022 04:22:47 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id p12so5404068plq.4 for ; Mon, 07 Nov 2022 04:22:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ymBX60LUOuBsP+vRhvxq6pMPtRa4aOay12HNgYBIPk8=; b=S/Z5s8P8T5uiK4XbX4rCHctiscfLR0VRkfVa8d/UjKp4EGl/YLo7qlEmhcS0/sed7c TDZaTDoUC0Yk0MEyLxMv9cwVzIszQAZ9xvMqtpb1Vd2BC6vSp10KqA/E3jj9OBZ8V0rv qD/RXLMeRr15dwdiXgCJi+UgutxS5NuOXI5+F59/CAofV4Pd6AorhFx3Zm8aBlPSVnFi 4ggcjjtnHbIItdYxv5yy8Pp8jp/4/c4RF31WSlW2E7kdTCp5peYN6/Cg8d6YbokZRlWI gmZo0uNHxCnsD71h1eZ0BV70T2hoo0wDxXCvNCQj7xAWEOEq49wrLfquuC4yrnCgynvj LdsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ymBX60LUOuBsP+vRhvxq6pMPtRa4aOay12HNgYBIPk8=; b=IfmQc/N7p2W+44/A+3IKXfPmENQLE5wbmJnsL4aop3AVkyqDpeZW794jVN0Tf5uEKG +TgTjcq7zr574/AJXv84wjAO0HfOfsmB6RF/QVOBO7OtvCi/+38q3R1i6nsrqBpaEtKj DJfSxj8uH4NWoM5UzhNtpekkI3rOlzub+NmSwkGAfP3YRTUq3naYsVwThQ+i3zz2rf+q v8DA0aCIb66LfGINJf5ReCwYtbXy3HDEjtZKnRtce2BLJOjIKeineu/TtDr6boPEshFa 3h7X30pwaCVCkzuDeV7y2w8X7PjqI1ez1mJqv8Rz35+EhqiFHxw6UDsqIzMHvbbpf4hV xCng== X-Gm-Message-State: ACrzQf2/ig9PoVr83/CBKo+C7FE7SDh7GfUGN3HyTOU9xtqU6PcG2d4t Nh512YxxhntPcTOwegVfXyk= X-Received: by 2002:a17:90b:30d8:b0:213:fd7d:6a7b with SMTP id hi24-20020a17090b30d800b00213fd7d6a7bmr37298919pjb.29.1667823767066; Mon, 07 Nov 2022 04:22:47 -0800 (PST) Received: from localhost ([2406:7400:63:f20b:312d:45b2:85c1:c486]) by smtp.gmail.com with ESMTPSA id s23-20020a632157000000b0046ec0ef4a7esm4104967pgm.78.2022.11.07.04.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 04:22:46 -0800 (PST) From: "Ritesh Harjani (IBM)" To: Theodore Ts'o Cc: linux-ext4@vger.kernel.org, Harshad Shirwadkar , Wang Shilong , Andreas Dilger , Li Xi , "Ritesh Harjani (IBM)" Subject: [RFCv1 04/72] badblocks: Remove unused badblocks_flags Date: Mon, 7 Nov 2022 17:50:52 +0530 Message-Id: <3b00feafe3b640cc230582eeff4a194a5ba5838b.1667822611.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-ext4@vger.kernel.org badblocks_flags is not used anywhere. So just remove it. Signed-off-by: Ritesh Harjani (IBM) --- lib/ext2fs/badblocks.c | 6 +----- lib/ext2fs/ext2fsP.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/ext2fs/badblocks.c b/lib/ext2fs/badblocks.c index a306bc06..345168e0 100644 --- a/lib/ext2fs/badblocks.c +++ b/lib/ext2fs/badblocks.c @@ -81,11 +81,7 @@ errcode_t ext2fs_u32_copy(ext2_u32_list src, ext2_u32_list *dest) { errcode_t retval; - retval = make_u32_list(src->size, src->num, src->list, dest); - if (retval) - return retval; - (*dest)->badblocks_flags = src->badblocks_flags; - return 0; + return make_u32_list(src->size, src->num, src->list, dest); } errcode_t ext2fs_badblocks_copy(ext2_badblocks_list src, diff --git a/lib/ext2fs/ext2fsP.h b/lib/ext2fs/ext2fsP.h index a20a0502..d2045af8 100644 --- a/lib/ext2fs/ext2fsP.h +++ b/lib/ext2fs/ext2fsP.h @@ -34,7 +34,6 @@ struct ext2_struct_u32_list { int num; int size; __u32 *list; - int badblocks_flags; }; struct ext2_struct_u32_iterate { -- 2.37.3