From patchwork Mon Dec 13 04:14:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 12673051 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 59308C433F5 for ; Mon, 13 Dec 2021 04:15:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9C2456B0071; Sun, 12 Dec 2021 23:15:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9718C6B0073; Sun, 12 Dec 2021 23:15:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 83A2B6B0074; Sun, 12 Dec 2021 23:15:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0168.hostedemail.com [216.40.44.168]) by kanga.kvack.org (Postfix) with ESMTP id 70D596B0071 for ; Sun, 12 Dec 2021 23:15:42 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 28B448249980 for ; Mon, 13 Dec 2021 04:15:32 +0000 (UTC) X-FDA: 78911456904.25.88FD9F1 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf29.hostedemail.com (Postfix) with ESMTP id 50CEB120008 for ; Mon, 13 Dec 2021 04:15:30 +0000 (UTC) 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 1A7DD1F3B0; Mon, 13 Dec 2021 04:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1639368930; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d3ZK4cWv8H7actTxxnZZLYOrGmIHEpiDysulN0ZGTfQ=; b=Siet2ZPRSy42BsoMsDbZgZQRd2FGdZNFiGMVH1theIyEuj7H55s9fpVtsIR5Sa2Kp150xE /cMi3KGN+0Zp9qqRGrwkElO53Pz0HhLVMCz6IzuAKUwu9skGrYaHkOr0rot7wp2LQsFBeY vESybLOON63VU3uZuG/StzoqcmK4cMg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1639368930; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d3ZK4cWv8H7actTxxnZZLYOrGmIHEpiDysulN0ZGTfQ=; b=Pw9406nV/5BOZ4PG4ymu1QAygKL5V2x2Cdl0R8TeO7drctFhMnA/Oi2od7Lhfoq+TNkP46 yImyG+ssud6D30BA== 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 6647213310; Mon, 13 Dec 2021 04:15:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0e3vCN7ItmFTPwAAMHmgww (envelope-from ); Mon, 13 Dec 2021 04:15:26 +0000 Subject: [PATCH 0/2] Remove some 'congested' tests From: NeilBrown To: Andrew Morton , Mel Gorman , Philipp Reisner , Lars Ellenberg , Jan Kara , Ryusuke Konishi , "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 13 Dec 2021 15:14:27 +1100 Message-ID: <163936868317.23860.5037433897004720387.stgit@noble.brown> User-Agent: StGit/0.23 MIME-Version: 1.0 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 50CEB120008 X-Stat-Signature: h1yaqk8yfrrbzq94qmk9qeyduf85a33g Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=Siet2ZPR; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=Pw9406nV; spf=pass (imf29.hostedemail.com: domain of neilb@suse.de designates 195.135.220.29 as permitted sender) smtp.mailfrom=neilb@suse.de; dmarc=pass (policy=none) header.from=suse.de X-HE-Tag: 1639368930-742336 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: The framework for reporting congestion for "bdi"s is no longer widely used. bdis for block devices don't report congestion at all. bdis for nfs, ceph, and fuse do, but any code which depends on that is not going to work for most filesystems. So we should remove it. These two patches remove {inode,bdi,wb}_congested() and related functions, and change all call site to assume the result was "false", which it (almost) always is. NeilBrown --- NeilBrown (2): Remove inode_congested() Remove bdi_congested() and wb_congested() and related functions 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(-) -- Signature