Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6926505rdb; Fri, 15 Dec 2023 12:05:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcL1A5ndVQo3yl+7x7lpwzIlONvwswnG+d5TuwSnnZH8PXDHmTEkIP4IJlyEIE2jeUTTFZ X-Received: by 2002:a05:6830:1ce:b0:6da:300f:744 with SMTP id r14-20020a05683001ce00b006da300f0744mr6366058ota.50.1702670704473; Fri, 15 Dec 2023 12:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702670704; cv=none; d=google.com; s=arc-20160816; b=nulq/N+ZoZK48q6WmhGjmD6neGUGJenq+Qe9P7rVTPd+YoIkTNG3vbT0z672fAAwHl FHOgsS2Pk8OvXNzWDmFk04jA2xwTveVAq6aRI2/0dj0lJ3mU950MQ/OIu1izmZfv4uXl fpfy3OsQLps77znDBzHk77CpwR4hA9JSxT94AtFqV9cVZ0PJt9K70yBEMZP5A49Hoxi0 Vxh6qNoaQxC5Mnb/Ent+CpD8oK71ybONnBwGxBOpZe/0dSqOXgxgYcIxqEcGPLGdVaVp goUpjt08hq892FcgSQ/3kNQKTuFftio9/HhmwIQDT6ysB/lVq08wgtcHyIP2M+hM8CKm D41Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=eU+CKpTDHM2zoWr8Iu/6jTnTrmbE2V5dKmSdec4HmWI=; fh=timWtHA7UGScEpXk98kbQKGrJEBXaf2Y1JfEnqzAnNI=; b=fiXDYtBwZtGDJmTuf8y/SBrq0D7K6yzK9lwVP26fEPKjR8xOQJLlaRU3s5k0NJH7Vf uFEtjhPUTEvM+0bvBRwHw/c3b2U/PC5mzr5D2TetrLvixnmXquEMHR5C3lvfHdJqEWrI b5LLZXIlrFX+ub5DDYkDy7tkCQrs49wpb88r3Z5TTzj7IVmnaQMXKQtV/m7vVNb2rNXY /8E/4JuTxhyZkMuVH3XbQWrqop+wRGyKKQNUgsC6uq5LKooTj6GMbSE26AeK92l9A7c6 gUm9uW606IXo1SDCH0ZIaDy2Xxvji0xEV5E2qAH/P+FIKQgoCjbP9/d15n3SPKspN1/l Roqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=miy2KdKg; spf=pass (google.com: domain of linux-kernel+bounces-1595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1595-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c1-20020ab06941000000b007cb5492de72si1596286uas.113.2023.12.15.12.05.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 12:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=miy2KdKg; spf=pass (google.com: domain of linux-kernel+bounces-1595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1595-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 254391C23C54 for ; Fri, 15 Dec 2023 20:04:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D76FB5F873; Fri, 15 Dec 2023 20:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="miy2KdKg" X-Original-To: linux-kernel@vger.kernel.org Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBC1B563A4; Fri, 15 Dec 2023 20:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=eU+CKpTDHM2zoWr8Iu/6jTnTrmbE2V5dKmSdec4HmWI=; b=miy2KdKgA4utgsHuGUGwTLx0dz Acc625FaWDqz6kjwPvC6mTFGbM6or6mvD1tKGRypzGaSjQSazNrvrtT4smUCkPtOXXGU3z1hLrrPP XoRkZw5GUsiSIqEPKdGqy0b5sHNInqMxIQWNsM9HA8zI29JppKdLqhtbIE4PtbiUkolYkvm6Bs+/l /qhImewSf4uXpReKXXZz3p+/nn4XNoxsG6FvVGRc6egVPJR+rGlLAcA2JCW9Lkcul9/ckefuFRyd0 fznqPAnejnkNGuvVfmTxuzv3tUHyXAg1oeyqyj4wPJVLQyLntLzU2Rm3/JgNpkjawemq6+nSsoAGD BprBoiuQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rEEOU-0038i6-UQ; Fri, 15 Dec 2023 20:02:46 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH 01/14] fs: Remove clean_page_buffers() Date: Fri, 15 Dec 2023 20:02:32 +0000 Message-Id: <20231215200245.748418-2-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20231215200245.748418-1-willy@infradead.org> References: <20231215200245.748418-1-willy@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This function has been unused since the removal of bdev_write_page(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/mpage.c | 10 ---------- include/linux/buffer_head.h | 1 - 2 files changed, 11 deletions(-) diff --git a/fs/mpage.c b/fs/mpage.c index ffb064ed9d04..63bf99856024 100644 --- a/fs/mpage.c +++ b/fs/mpage.c @@ -455,16 +455,6 @@ static void clean_buffers(struct page *page, unsigned first_unmapped) try_to_free_buffers(page_folio(page)); } -/* - * For situations where we want to clean all buffers attached to a page. - * We don't need to calculate how many buffers are attached to the page, - * we just need to specify a number larger than the maximum number of buffers. - */ -void clean_page_buffers(struct page *page) -{ - clean_buffers(page, ~0U); -} - static int __mpage_writepage(struct folio *folio, struct writeback_control *wbc, void *data) { diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 5f23ee599889..94f6161eb45e 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h @@ -270,7 +270,6 @@ int generic_write_end(struct file *, struct address_space *, loff_t, unsigned, unsigned, struct page *, void *); void folio_zero_new_buffers(struct folio *folio, size_t from, size_t to); -void clean_page_buffers(struct page *page); int cont_write_begin(struct file *, struct address_space *, loff_t, unsigned, struct page **, void **, get_block_t *, loff_t *); -- 2.42.0