From patchwork Fri Nov 18 07:30:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13047793 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 67C9FC4332F for ; Fri, 18 Nov 2022 07:31:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 078AE8E0001; Fri, 18 Nov 2022 02:31:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 002668E0005; Fri, 18 Nov 2022 02:31:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DBECA8E0001; Fri, 18 Nov 2022 02:31:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id ADC958E0005 for ; Fri, 18 Nov 2022 02:31:05 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 8A9314126D for ; Fri, 18 Nov 2022 07:31:05 +0000 (UTC) X-FDA: 80145741690.11.20D3DA9 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by imf28.hostedemail.com (Postfix) with ESMTP id 4072DC0010 for ; Fri, 18 Nov 2022 07:31:05 +0000 (UTC) Received: by mail-pj1-f46.google.com with SMTP id q1-20020a17090a750100b002139ec1e999so4305976pjk.1 for ; Thu, 17 Nov 2022 23:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CejbmJMt8knLZkp2jnt3nSDaW2/iqvwuj8SHKIZ6DVU=; b=e28sylLlQZUiBvoVF9tPYbPyjfnV4i6SeO/H+EXMvftssRjI+reFA4qMGgM5yDcDPw iuHW6cApXuI55771oVrwJmic63Uelq3yaeLZ7tQHhypfuc99pqDHg5C1hqlTZ14qKTQd 2D9MC/BqCBLie09z4RZ/9ewSv68efJQc0B8gSz0Nnz4BvLtr4LIXj8aeoZO7fOc5jSQC G/3ZLlmqFGfU2VlFaXy+wKBwsMDO+r3CwnrqryV45PVQ26JdwVg3r+I9Ta6QVvi6F7oi pkPax989JPanp1uEe3vWC5ZAANTFOsyggZLQKbgOVlz7G0KJzrCiNnodIUbMl2Oy5DZ8 Qvhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CejbmJMt8knLZkp2jnt3nSDaW2/iqvwuj8SHKIZ6DVU=; b=x7rZvnOr2+dnU5dnaC6gJ6qcYr+yYXzMAzUE2Rfo8pHN80G22NoNT7Ig1BuA3eUlk2 F0Xxg8+adfeRa1Uj/ctrlwRYe8itq8GplhPIDJKl/jfs2YCbkFm8zDXWBl68WBYqeR1G Lau2lbLvYMUN1Z03GeeNh13SRZ5m7v2eIMMIzqVqYIVziQM5wcbtC+yK7nb63jHOYOOi 1W7WZiqZzv+9CslAOUBg8hKjImKmr0se3pIQskVPQ7Ll7zCoaUqgk5EotzVVNqhJCSX+ o6MKitQsDb1o1lf0zP7mv8L9x5ZDRlICchtzF/93sKIbjx1j8rRftJsC7lgNSyH4qEmd qAGQ== X-Gm-Message-State: ANoB5pk0rKGc25fORvF16F8+lg6M/VXBH4YnxBHtZlCS3WBwDCbpDc24 zGm0NmAnjfACZh2+Y/vrfXKDZI2aKcTitQ== X-Google-Smtp-Source: AA0mqf7ZECbq0Am2Wul1fzK1qGNPncRAHISQHFCEqviSEGgaCjJZBMDKZ9VwhWGiv4XU+wtL9oWIUQ== X-Received: by 2002:a17:90a:d3d5:b0:218:845f:36a1 with SMTP id d21-20020a17090ad3d500b00218845f36a1mr2283406pjw.117.1668756664181; Thu, 17 Nov 2022 23:31:04 -0800 (PST) Received: from fedora.hsd1.ca.comcast.net ([2601:644:8002:1c20::2c6b]) by smtp.googlemail.com with ESMTPSA id f7-20020a625107000000b0056b818142a2sm2424325pfb.109.2022.11.17.23.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 23:31:03 -0800 (PST) From: "Vishal Moola (Oracle)" To: linux-mm@kvack.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, akpm@linux-foundation.org, willy@infradead.org, naoya.horiguchi@nec.com, tytso@mit.edu, "Vishal Moola (Oracle)" Subject: [PATCH v3 4/4] folio-compat: Remove try_to_release_page() Date: Thu, 17 Nov 2022 23:30:55 -0800 Message-Id: <20221118073055.55694-5-vishal.moola@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118073055.55694-1-vishal.moola@gmail.com> References: <20221118073055.55694-1-vishal.moola@gmail.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1668756665; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CejbmJMt8knLZkp2jnt3nSDaW2/iqvwuj8SHKIZ6DVU=; b=ZQXjULfNmUw/urD/QSC4n1aAICx46M/tA43yEx3wq8HxfyeJ35cPD7Ve4+/wB+XpyeMLxT GgQHVoykAb9+MiZmKbgP0VPy9x1hyjcuB3piPiCQTcr5zVKyrOdvG1mmo9efe74Hj783YA TKeL2gKbHVAMBW5QpMQ1HvLsqqUeZDs= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e28sylLl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.216.46 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1668756665; a=rsa-sha256; cv=none; b=B7f8ozAT3E7JU0+4URCw5hnj0MAn09wrtPLeVpqghrrs/6psknajxoZategD9Nx0EDNmbg r0/tHOjgS7A7aKSknZ42r0P+SrATQrNcXrAUBmB2bOXztW/9O3OkicNXcQSdpUaRemLG8g 0Lktp7PnlUSWpFY86gq9aetFiPKpLzg= X-Rspam-User: X-Stat-Signature: zpxfq3w5f7g5357s3ry75zy6ke97p35q X-Rspamd-Queue-Id: 4072DC0010 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e28sylLl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.216.46 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com X-Rspamd-Server: rspam07 X-HE-Tag: 1668756665-111077 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000058, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: There are no more callers of try_to_release_page(), so remove it. This saves 149 bytes of kernel text. Signed-off-by: Vishal Moola (Oracle) --- include/linux/pagemap.h | 1 - mm/folio-compat.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index bbccb4044222..daf5e1a1d313 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1107,7 +1107,6 @@ void __filemap_remove_folio(struct folio *folio, void *shadow); void replace_page_cache_page(struct page *old, struct page *new); void delete_from_page_cache_batch(struct address_space *mapping, struct folio_batch *fbatch); -int try_to_release_page(struct page *page, gfp_t gfp); bool filemap_release_folio(struct folio *folio, gfp_t gfp); loff_t mapping_seek_hole_data(struct address_space *, loff_t start, loff_t end, int whence); diff --git a/mm/folio-compat.c b/mm/folio-compat.c index e1e23b4947d7..9318a0bd9155 100644 --- a/mm/folio-compat.c +++ b/mm/folio-compat.c @@ -129,12 +129,6 @@ void delete_from_page_cache(struct page *page) return filemap_remove_folio(page_folio(page)); } -int try_to_release_page(struct page *page, gfp_t gfp) -{ - return filemap_release_folio(page_folio(page), gfp); -} -EXPORT_SYMBOL(try_to_release_page); - int isolate_lru_page(struct page *page) { if (WARN_RATELIMIT(PageTail(page), "trying to isolate tail page"))