From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C9E7C433F5 for ; Thu, 27 Jan 2022 22:10:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 04AE56B0071; Thu, 27 Jan 2022 17:10:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F3BC06B0072; Thu, 27 Jan 2022 17:10:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E03DC6B0073; Thu, 27 Jan 2022 17:10:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0039.hostedemail.com [216.40.44.39]) by kanga.kvack.org (Postfix) with ESMTP id D38D26B0071 for ; Thu, 27 Jan 2022 17:10:25 -0500 (EST) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8B2F38249980 for ; Thu, 27 Jan 2022 22:10:25 +0000 (UTC) X-FDA: 79077461610.31.19DF6D7 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by imf05.hostedemail.com (Postfix) with ESMTP id 447A210001A for ; Thu, 27 Jan 2022 22:10:25 +0000 (UTC) Received: by mail-lj1-f170.google.com with SMTP id e17so6354749ljk.5 for ; Thu, 27 Jan 2022 14:10:24 -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=uARfCtBU7sVGah7/6PyADmIvVAetq/HMoaztehQ6Uvh77DDicKXIrkvFd7vCUnuLQh q7KM57RmWgMVREwQk9bySY+tlpWO1/RphRuPMoN1rrmbw38SB3ZM5KG0VrrmNm3GTCoC CoUA/JEPCEDeehHoWPNHvNKdZi6M//h1tiSOJgutTbmXEA2fGOR8C13aEIR5rTDJLmcG Rpkn0Ch0ko5wc8YT+wt/ZjQ6FlbQqSjzwYodadvwVuiI5FYIQBQhwVBpSwO5MpaKrlBz jRsHUE09l51i+iffxckhuS3ZRKxccGLK7zV+8uE8U0sP0EXuADm2f2xJGP2tseNkz55P iUwQ== X-Gm-Message-State: AOAM533JFEGcIPmqnZddGoQRyE3J7xAmYlofO+zLixoTR0OSxiYGHMjj XxusQSCFIHzWhT06pDnUZus2ZIhVfyuCwpGvXfQ= X-Google-Smtp-Source: ABdhPJy9dJl6L/bnRQi8tK1Am+5DPjPBZvatcTyLSMpbpD4vy19hTtp8mGF/Cl1TBx2f3Cw7TL+lgScx4mlljQ4behg= 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" X-Rspamd-Queue-Id: 447A210001A X-Rspam-User: nil Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RZypLcBc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf05.hostedemail.com: domain of konishi.ryusuke@gmail.com designates 209.85.208.170 as permitted sender) smtp.mailfrom=konishi.ryusuke@gmail.com X-Stat-Signature: uyc1r9jjmcyhr856wgygg7k54fx77hag X-Rspamd-Server: rspam08 X-HE-Tag: 1643321425-331649 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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