From patchwork Wed Nov 16 02:10:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13044341 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 08077C433FE for ; Wed, 16 Nov 2022 02:10:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 607AF6B0074; Tue, 15 Nov 2022 21:10:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 591098E0002; Tue, 15 Nov 2022 21:10:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36BF26B007B; Tue, 15 Nov 2022 21:10:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 299B66B0074 for ; Tue, 15 Nov 2022 21:10:22 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id F11CC160B2F for ; Wed, 16 Nov 2022 02:10:21 +0000 (UTC) X-FDA: 80137675842.17.A65B171 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by imf28.hostedemail.com (Postfix) with ESMTP id 9388BC0009 for ; Wed, 16 Nov 2022 02:10:21 +0000 (UTC) Received: by mail-pj1-f42.google.com with SMTP id v4-20020a17090a088400b00212cb0ed97eso973507pjc.5 for ; Tue, 15 Nov 2022 18:10:21 -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=G/lcM5PwZ0+Ib/Xb9y7OrQjWRddNdmXLywgQSv385sHaURx8IljbeuN/Sbp+vTAI7e J+GBm0Oio9YIM/KXtdA9WGU19Y/4E+/6K1dfkB7Q3+K3PrsXhvC3Z6tROjHkkEaa7Y7v cZgHG2WtjhEhsZnB6nySPb+qXRk4Yo8a+pM/vwOZlgkcecKcsrnbJXxVv0J7htNHaMoK x52qgRJ/chHlnbyPgH/sb7ZdIZLoT/4WnOh6fHNX17pWc93N/x9YWGB0IbnlYTfH/VMa oN/sDsoKLLnSaAfbWJ9CAluV8Ep3aJdG0byCQ7rm3WvDxsWsS/GnsDEmjhs66e7EF9dH Ur7w== 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=TXJxzejg+AQrnOTjLfasmIGfgtHO4oZKqPAD4JcsMfpVoFwRVFTbGE1/muLSNP/ud6 rU2s3C/y4++LQn97uDl7JKP+LOQkqVpuIAYmCv4yjU8fG+kwQycpUUKMyGFXR1hRbMt2 lF/JJ6/jHrJSsustt29nHcWjLgVJF8FN1zqXuVzDsOXOOx1V+qZGE3HjlwLnn8flMx1x AySMLRj0x4dp6/bc/cThI0vUe29LfoMxpsBbQtfTKLksHfU7VA7HFdRMqewiSdBhKoep 7zNbbO/PZHwI5GjBv4npfGqxU0/FnSYkTZG0l+edwn4X0aJlf6/5mlieIKuDgy2pCjAI ld6g== X-Gm-Message-State: ANoB5pmqykVUfzhBd4NPCIpIN3fVR13AlwEUo68P7WJ7Ns6Qs2NQo54i bUdCjRgo4OEUxGcKLABTnBBYFN3u9laMxQ== X-Google-Smtp-Source: AA0mqf7uKcISWh7p7npTkea6Y8R0mC2+ZIlMKnRY0p+5XL9R9S9v5F0yJTMB8XVfcjk+yqVakExTKg== X-Received: by 2002:a17:90a:1a12:b0:20a:6ffc:f0c6 with SMTP id 18-20020a17090a1a1200b0020a6ffcf0c6mr1371340pjk.49.1668564620886; Tue, 15 Nov 2022 18:10:20 -0800 (PST) Received: from fedora.hsd1.ca.comcast.net ([2601:644:8002:1c20::2c6b]) by smtp.googlemail.com with ESMTPSA id e18-20020a17090301d200b0018691ce1696sm10782926plh.131.2022.11.15.18.10.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 18:10:20 -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 4/4] folio-compat: Remove try_to_release_page() Date: Tue, 15 Nov 2022 18:10:11 -0800 Message-Id: <20221116021011.54164-5-vishal.moola@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116021011.54164-1-vishal.moola@gmail.com> References: <20221116021011.54164-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=1668564621; 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=OZIEDGH2nje1zWOsjhLCKa9UdKo9BfwVHnj6YFJfViHwH0qs2NIjd2oiHzNhIeW+xjKLAr Y8y1jxX1o+VDpGzXzQ4VROFahvB+9PP/Co62ad0bfT87tAYY7RKKnSo5aVpHxtDBs75w1N athYPCKpKa9yS5LZ6sNiEX78tYxGILw= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="G/lcM5Pw"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.216.42 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1668564621; a=rsa-sha256; cv=none; b=j1JsmAY9Jim1M2YAJhDiFz1urhQV4cR2kiieRzyncfcjAjQFtIzBsy3dxpZllTpnAIGD+T fu8YovGMVCzLjmjrke5H6YdlG6MtGyPN/ZCVUsWW4DF0sNEVgYstvP2t/QEAzNzSQdU3cG b3AK7rUIgzR1jcOR+WzK7WbOwGimUco= X-Rspam-User: X-Stat-Signature: zmdiihbdqwnaaqrpxeihfog11gz91qhp X-Rspamd-Queue-Id: 9388BC0009 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="G/lcM5Pw"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.216.42 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com X-Rspamd-Server: rspam07 X-HE-Tag: 1668564621-514100 X-Bogosity: Ham, tests=bogofilter, spamicity=0.001856, 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"))