Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2431154rdh; Wed, 27 Sep 2023 02:20:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1ygH8czctdrX0ISOuEnp7pCA1aXbO4FugD46aOO3Pgrxe6AM1nLLH74QG3yCHB4uq0flx X-Received: by 2002:a05:6a20:3d85:b0:15a:bf8:7dfc with SMTP id s5-20020a056a203d8500b0015a0bf87dfcmr1487481pzi.15.1695806420236; Wed, 27 Sep 2023 02:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695806420; cv=none; d=google.com; s=arc-20160816; b=fM9RncC3RIu+8hisa90L6SYr3KeFsvGfWZLpgU+KGQKSrhSq1KWeGemDyE7BH4Dm5B d5VJjmh2WwCsVqL1rQiAUvBRbjsUJz9XMNeVjPSdBYpxlqajczVHBkcx2T4tt5OWNI41 J0McogOZGkzStJYCqSTeMEw1CkZJVrne+DXr0Y19fMrRRuQGKOJe6b56nAnyATjeIH+z yURIYOwI/nT8OApWTmi+5I5eVtq+kZE+FVlEoScdhfiQW3bikHrhs0qaCvrmFRct/xq3 qmz+l7pnQ2zWD/lsgVKlFsPsTnz7bAk6wneUcP1tPFKjfTevBVWPPEF73Hfxw/I/BIzT O+ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:subject:cc:to:from:message-id:date :dkim-signature; bh=TyVIuA0BaMwLMxnZKzpQRdN52T1fvyT+B4ncon9Lv2I=; fh=i7DQetGfDsfWYXohCb4E5ZTXE/R/ityVAbXNGIxurAo=; b=NSCBMUAOVfT9S2puROGSfe3zxKraTJNDbSL9IC15wczJKzxdRtpoVkKY6qDw9YCDRF /nitJUUBCt++bALECrQ1fagAFvtYamfyXgumu4WdMthcytiGAvBupePNm42gaWx55mTc NXKFHqMZMcgwzc9J7r3edSD6bja/bYjhdQpVvK5aWl7s1CvqiICBWEECJNLHkTFMfrld tEVVk5QeeeejYsN4K/qH8UUGApaTQI0pBHS5PDSHXVqjAhh0OGu52RR5IYBjesAaGX4g G0DdL2iGFWyo77y/ZAI5VGWVxMZVWL1zkt9zVKGmmRFRpiLjWR3JaTQ1XmYtpu3IVdNx 11FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=foXu9kVc; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x6-20020a17090a8a8600b002773cc10d3csi9825808pjn.78.2023.09.27.02.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:20:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=foXu9kVc; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 83990807C5C0; Tue, 26 Sep 2023 23:10:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229525AbjI0GKm (ORCPT + 99 others); Wed, 27 Sep 2023 02:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjI0GKl (ORCPT ); Wed, 27 Sep 2023 02:10:41 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25E81B3; Tue, 26 Sep 2023 23:10:40 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1c434c33ec0so78253455ad.3; Tue, 26 Sep 2023 23:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695795039; x=1696399839; darn=vger.kernel.org; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=TyVIuA0BaMwLMxnZKzpQRdN52T1fvyT+B4ncon9Lv2I=; b=foXu9kVc/AsefpALsvO4BoZnN0dG4B5rYE93fhSIVANgZnFCRvmaAGgu+oj4CMtnwQ owk5LLtOQvcMxQbw8kGzkvOi+MDM5zna6enttWAYAfQbmt5row7TR5ki/4qA0z801fTP wl10+E/8iZOoaOXLbkg3KuN4se885RpOR7VthJP1nsWsJ5lOeRechE1edMc6V82hDio0 nCMZ37p+ir8RBTSrzDCXHBzzYqn5lINolYZUh0SsDJqZEh0SBVR9aqjMg7EKarLkEV9k Ky/+dVFK7pYju1dV+AHnJxldi3vV+qz8Qq5wFiNwqN/hoHJU3tULXbfSUWpuobjmyHjk 7WaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695795039; x=1696399839; h=in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TyVIuA0BaMwLMxnZKzpQRdN52T1fvyT+B4ncon9Lv2I=; b=fNX0mpOYntW4LGeGFtct3Ctp4R4Bv36C2TQdo6Mg2MFajkgWT63E51dKkwYQbpK06z XGq4m8imF0eLwN+1eiNVPq+pUaGnDCyAnsMXtHibEXeQe3fciiY8uQ3m+LcY8+LA4A+C 76DmGe1R2vCzYacl52pJPBg6YkGWI+K2iUDRA8uO70fB7v3eF+Par0EtAPxM3acfD+la OCZnJR3gORGsmuiSdxX+KgkTxiYgkYdwy7G6NhUkPJbSUm0xGvOtbQMcsiHUs1snVpBu hV3K+Rg0GMqlCZt17sODHgStj8E+xWd+hqarJnrq8j2KA/6Wlaz3hLT2U9XYeDoYNBHD NgBQ== X-Gm-Message-State: AOJu0YzMLskphboUnIX1vXy0jCfRe3qnYX7EloZOGuz0Zr2+706HKfQc ElLYLbnvdLIQ9c5uECUxu+mFS8ceSnc= X-Received: by 2002:a17:903:2684:b0:1c6:19da:b2a5 with SMTP id jf4-20020a170903268400b001c619dab2a5mr795767plb.32.1695795038945; Tue, 26 Sep 2023 23:10:38 -0700 (PDT) Received: from dw-tp ([49.207.223.191]) by smtp.gmail.com with ESMTPSA id b2-20020a170902ed0200b001c444f185b4sm6054789pld.237.2023.09.26.23.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 23:10:38 -0700 (PDT) Date: Wed, 27 Sep 2023 11:40:34 +0530 Message-Id: <874jjggn8l.fsf@doe.com> From: Ritesh Harjani (IBM) To: Kemeng Shi , tytso@mit.edu, adilger.kernel@dilger.ca Cc: ojaswin@linux.ibm.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 01/12] ext4: make state in ext4_mb_mark_bb to be bool In-Reply-To: <20230919201532.310085-2-shikemeng@huaweicloud.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 26 Sep 2023 23:10:43 -0700 (PDT) Kemeng Shi writes: > As state could only be either 0 or 1, just make it bool. Sure. > > Signed-off-by: Kemeng Shi > --- > fs/ext4/ext4.h | 2 +- > fs/ext4/fast_commit.c | 8 ++++---- > fs/ext4/mballoc.c | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) But why not convert at all places? git grep "ext4_mb_mark_bb" . fs/ext4/ext4.h:extern void ext4_mb_mark_bb(struct super_block *sb, ext4_fsblk_t block, fs/ext4/extents.c: ext4_mb_mark_bb(inode->i_sb, fs/ext4/extents.c: ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, 0); fs/ext4/fast_commit.c: ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, 0); fs/ext4/fast_commit.c: ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, 0); fs/ext4/fast_commit.c: ext4_mb_mark_bb(inode->i_sb, fs/ext4/fast_commit.c: ext4_mb_mark_bb(inode->i_sb, map.m_pblk, fs/ext4/mballoc.c:void ext4_mb_mark_bb(struct super_block *sb, ext4_fsblk_t block, fs/ext4/mballoc.c: ext4_mb_mark_bb(sb, block, 1, 1); -ritesh