Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp899838pxb; Fri, 28 Jan 2022 12:40:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxchRvyEwjftDADf7g/Si8GO6I3jpCLd65ISbtwyYJ6l6D/1o1S/rwLXlZVHAGcWkFD98/c X-Received: by 2002:a17:907:60cd:: with SMTP id hv13mr8320363ejc.684.1643402409250; Fri, 28 Jan 2022 12:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643402409; cv=none; d=google.com; s=arc-20160816; b=NTJCtteWRLBf7WXE+JBZByeMX4rG2oh3I/7YcLMm2kB52Wbm6I26U0tIdrEIRnVz8r QjtNNI2wa6netplBDOFUzejpHwbJgsIQpYIngx2/BidrkWjMH5OCtWwIAKW6oGcLTJ2X BEaWDbWIblJ/QJS+YRcdiwTmPPpLnxEZedkq3Bvp6mkO8QskxreB00Kf7o1lczf9K7VV f3cMosbiuN0ZFAQjAGY/GVJiPzNOylpDS1991T4HNHx/WOK6O4b0/4oMtFx8iOKoI9Nb UXhG9N8bgYCWif51CB8fMmpgy1NxIEVSSgwMbskQXfwhuvtS3soJwIvmnyB/98BkF3wi vuPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pkUjSb/fdfaa3FAu68ePw4JIYSvRfOC6qyjCilb3MLA=; b=qMSSa8MLtIEpVvNHFjry7o/uyZsDKhdV8TvH6ebnfV1zjdTHmzioUHcBBU4bCI/0sE 4Wl+lPL/MCeNBZJr8zuuLynzsFZIQasXwFlsA15Nvh1NfNkrhrU5HI3NaKSdz6gHSm5k hLWh++rXO06X79ps5YUlKdmkg5cc3Huk1I9DNRymtcuxufqPPnLB6riWQzqfkS+5EvpY iaAk3l6CPOpe72dCookTINtc6k+dP48Pkq7jdl+DN8mIITNljuAehpDRkPCWWMs5fOYJ 5yZVypV0L10CAyvhR9fL6lNdgbDl6+UGEVbEDLjrcaJqAxA7xlHCumD7RQ3YL6mMPGPv 7SzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RZypLcBc; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si3947352edd.171.2022.01.28.12.39.46; Fri, 28 Jan 2022 12:40:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RZypLcBc; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S235693AbiA0WK0 (ORCPT + 99 others); Thu, 27 Jan 2022 17:10:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiA0WKZ (ORCPT ); Thu, 27 Jan 2022 17:10:25 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E0EDC061714; Thu, 27 Jan 2022 14:10:25 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id b14so6432113ljb.0; Thu, 27 Jan 2022 14:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pkUjSb/fdfaa3FAu68ePw4JIYSvRfOC6qyjCilb3MLA=; b=RZypLcBcYIUdWY9vV42TppO4LaQPblBv+kCbhi7sSIeity0kCuHxjxBkOW+017vQfl mGJzLUkiIibnMnTTVFBLt50VetVg1KzsVDl5jUao0XF5T7oAmS+N8pzAB7j2FNpZGYiq xbHy2XvQvsScldzehtVeFOoApJ3rHFqpSLvhJxxrFdkCY4SBOyNaqvrt+GIQFpxxuFFh CmyJh/SQOY6vLReOapEDPt77zxgz4JT8F/AZF2zWXE0KCoQ1ChkpEBN24khQj5g1i9qq aguCWoq8pgm51d0p5z0SrS13R+0j/TGLyIS5NFK+7PHw2xgpowySjWS1of9EUGPSq6jn /AOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pkUjSb/fdfaa3FAu68ePw4JIYSvRfOC6qyjCilb3MLA=; b=tfMmVXe40SSgzi1gp75b3U8T5saZ6sZiNg6gAv2dC0KikkIBgFISBUuR2tThVGspTw aravKdUXGq3zPkeylhkxfFugDTTrTL9ovBFHJLqlb8fMIAdVxzWnSPEdQS0Qorlj+E4F Ja+j24Fsky1MVRHsiUPpT5ZHbtv3ukeE3lqaEc6HyQ6TIgrNcu9eE7nlGWLNHXEiu5Tk sErDd5tW7ug4rKwW6CNTObgMD4y7GmuXnbUJLG0uCMMkNrWQUoN+50B5RSAfy6ZCY5Nf +5iovHwdqhSShoYvqEc4tNqacTehQMnkPclg2xrwupMRELVCN8LXcoYM+AUVBXZ3dUpR 09vQ== X-Gm-Message-State: AOAM530D/tqL6MhFDKXFf5sG2IzJRcf+9Bzs1m3Acmw814enhXbrSQDO 3v5uoIek5bVj0cso6gM9x41dbZxlExK4LW4hSGw= X-Received: by 2002:a2e:5d3:: with SMTP id 202mr3981304ljf.330.1643321423317; Thu, 27 Jan 2022 14:10:23 -0800 (PST) MIME-Version: 1.0 References: <164325106958.29787.4865219843242892726.stgit@noble.brown> <164325158955.29787.4769373293473421057.stgit@noble.brown> In-Reply-To: <164325158955.29787.4769373293473421057.stgit@noble.brown> From: Ryusuke Konishi Date: Fri, 28 Jan 2022 07:10:11 +0900 Message-ID: Subject: Re: [PATCH 2/9] Remove bdi_congested() and wb_congested() and related functions To: NeilBrown Cc: Andrew Morton , Jaegeuk Kim , Chao Yu , Jeff Layton , Ilya Dryomov , Miklos Szeredi , Trond Myklebust , Anna Schumaker , "Darrick J. Wong" , Philipp Reisner , Lars Ellenberg , Paolo Valente , Jens Axboe , Linux MM , linux-nilfs , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org, ceph-devel@vger.kernel.org, drbd-dev@lists.linbit.com, LKML , linux-block@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Jan 27, 2022 at 11:47 AM NeilBrown wrote: > > These functions are no longer useful as the only bdis that report > congestion are in ceph, fuse, and nfs. None of those bdis can be the > target of the calls in drbd, ext2, nilfs2, or xfs. > > Removing the test on bdi_write_contested() in current_may_throttle() > could cause a small change in behaviour, but only when PF_LOCAL_THROTTLE > is set. > > So replace the calls by 'false' and simplify the code - and remove the > functions. > > Signed-off-by: NeilBrown > --- > drivers/block/drbd/drbd_int.h | 3 --- > drivers/block/drbd/drbd_req.c | 3 +-- > fs/ext2/ialloc.c | 2 -- > fs/nilfs2/segbuf.c | 11 ----------- > fs/xfs/xfs_buf.c | 3 --- > include/linux/backing-dev.h | 26 -------------------------- > mm/vmscan.c | 4 +--- > 7 files changed, 2 insertions(+), 50 deletions(-) for nilfs2 bits, Acked-by: Ryusuke Konishi Thanks, Ryusuke Konishi