Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1708319rwn; Fri, 9 Sep 2022 02:51:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6W9fCpXylCEjQ9JiFU14CV9CNJN2OWqKkowd5LZbJ4p8fedOLjfoLRAAp+8ayzUNWMNWbB X-Received: by 2002:a2e:a4b4:0:b0:268:cb78:271c with SMTP id g20-20020a2ea4b4000000b00268cb78271cmr3931390ljm.156.1662717092323; Fri, 09 Sep 2022 02:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662717092; cv=none; d=google.com; s=arc-20160816; b=IfwkWNTHI56Hy85/txPyySLMLLElQ0CULNkgDmLXl9TPQbN/N08rkLsjKueaIG/ijL NbOEZj0aLxgcLbGNj/QhYBw0o5A+wpB2Z+RIUFO/pPnFloRdQ7sQduEpY0yf1WoJONXN NcN3tClREeRDG7MQAWmkiqmIxsifDJmTy4XXTVxHWHAp2R0dBchFsExem6HTvQeTBRJy QYN0aKSkIAcTGoQrSyOZN0GrqKPfv17tQ/GsyD9d2pbj8t3hJqtH3zS7ln8BVknKGKq/ X0HaJJhFP8qwYnKUdmPm6x/zZysTBT0ae97VNe/dN1qtid98jvlgZ8radgeNIIltKik4 4bEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=tZMRMuHCYZenMkKNZlYosRlANTeyRL1A4qKReD8ccs0=; b=sTjSywFvxPRuZ1b0G0P60cI87yReZ2PFHXoyGWQZG7I/abOrtzHHXGn/mFV4UbifLg advnxbphBH+E/E9V0snls2rtS6Vsn7uHyQ6NAwykAk40N8ztHxUru+qbtobpll3uuiM0 AzXgt7oBba/QEP99Ckf8JioFsc/j2ZCopAj2NUhNyRXElFl9Er5goYxPp7W5TltVAhmI bYZLt2Oa/xJQq+e5OClHDqRZk4qSuYU5CJKqYjBg27iv514qLlT1fRKmDsYsNtK8Ra1r R4FnclBqdnWPftleudovN2EjBtgQWYUAurKGHuM+h+oN9fXadijQncZCAhHBMztM5daj F+Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QYNv5X+l; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a30-20020a195f5e000000b004930266754esi40067lfj.250.2022.09.09.02.51.02; Fri, 09 Sep 2022 02:51:32 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QYNv5X+l; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbiIIJgi (ORCPT + 99 others); Fri, 9 Sep 2022 05:36:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiIIJgh (ORCPT ); Fri, 9 Sep 2022 05:36:37 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 365CA915F3 for ; Fri, 9 Sep 2022 02:36:36 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E53F41F8E4; Fri, 9 Sep 2022 09:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1662716194; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tZMRMuHCYZenMkKNZlYosRlANTeyRL1A4qKReD8ccs0=; b=QYNv5X+lhWXPW6izhjmBJrqkGQtaaU6E1gtllfIJ5nwW8959Duzp0nPnHjAZKuc6UVUp6t Q1/SkoVel4dO4iMHZriXcVvX1o93VkIk2sOOx7Zf6ScFFKjQvvTm9jJG5J1rLyHci9UGUp xyhXbqyicLk/HzLZsVxpEETWeOoUeAE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1662716194; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tZMRMuHCYZenMkKNZlYosRlANTeyRL1A4qKReD8ccs0=; b=PuAAywOyDAlaL8Xi3AliGHK0ggukn6i/Mi2CFuhPTVy/ukdgeqKb9dAZYz19vtJF3tMjJa nBmhN2LgopQQYUBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D027213A93; Fri, 9 Sep 2022 09:36:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id zpPJMiIJG2MoZAAAMHmgww (envelope-from ); Fri, 09 Sep 2022 09:36:34 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 5E323A0684; Fri, 9 Sep 2022 11:36:34 +0200 (CEST) Date: Fri, 9 Sep 2022 11:36:34 +0200 From: Jan Kara To: Miaohe Lin Cc: axboe@kernel.dk, dhowells@redhat.com, vbabka@suse.cz, willy@infradead.org, akpm@linux-foundation.org, zhanglianjie@uniontech.com, neilb@suse.de, jack@suse.cz, bvanassche@acm.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] writeback: remove unused macro DIRTY_FULL_SCOPE Message-ID: <20220909093634.od4aukp2oumgflcc@quack3> References: <20220909025711.32012-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909025711.32012-1-linmiaohe@huawei.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri 09-09-22 10:57:11, Miaohe Lin wrote: > It's introduced but never used. Remove it. > > Signed-off-by: Miaohe Lin Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > include/linux/writeback.h | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/include/linux/writeback.h b/include/linux/writeback.h > index 3f045f6d6c4f..06f9291b6fd5 100644 > --- a/include/linux/writeback.h > +++ b/include/linux/writeback.h > @@ -17,20 +17,12 @@ struct bio; > DECLARE_PER_CPU(int, dirty_throttle_leaks); > > /* > - * The 1/4 region under the global dirty thresh is for smooth dirty throttling: > - * > - * (thresh - thresh/DIRTY_FULL_SCOPE, thresh) > - * > - * Further beyond, all dirtier tasks will enter a loop waiting (possibly long > - * time) for the dirty pages to drop, unless written enough pages. > - * > * The global dirty threshold is normally equal to the global dirty limit, > * except when the system suddenly allocates a lot of anonymous memory and > * knocks down the global dirty threshold quickly, in which case the global > * dirty limit will follow down slowly to prevent livelocking all dirtier tasks. > */ > #define DIRTY_SCOPE 8 > -#define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) > > struct backing_dev_info; > > -- > 2.23.0 > -- Jan Kara SUSE Labs, CR