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 7C44FC433FE for ; Sat, 22 Jan 2022 06:15:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 15D7B6B00F4; Sat, 22 Jan 2022 01:15:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 01E136B00F5; Sat, 22 Jan 2022 01:15:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DDC6E6B00F6; Sat, 22 Jan 2022 01:15:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0186.hostedemail.com [216.40.44.186]) by kanga.kvack.org (Postfix) with ESMTP id B80006B00F4 for ; Sat, 22 Jan 2022 01:15:03 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 7A3898B306 for ; Sat, 22 Jan 2022 06:15:03 +0000 (UTC) X-FDA: 79056910086.08.44639A7 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id 142ECA000B for ; Sat, 22 Jan 2022 06:15:02 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E00460FB6; Sat, 22 Jan 2022 06:15:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7512BC004E1; Sat, 22 Jan 2022 06:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1642832101; bh=8vh+5FZgrGCe4vJN8mMLNNw9q62Hdl8EJYaSfGg1uqU=; h=Date:From:To:Subject:In-Reply-To:From; b=VGGI3iX786lGEaDPUF3FiuQ37a8Lhtfk4ggxCHD14aQP+iDTmkVRDno1IL1z2ChpV /ukYp6Z3592SkLgywRYnPGd13u1T9ECSq47DimoYZhGnhufi68T2As1SE6p26mKbdo 3hk0CV/p69Rfs+2Yg7cCE0ZZ7e3l+DB7AmIW88Jo= Date: Fri, 21 Jan 2022 22:15:01 -0800 From: Andrew Morton To: akpm@linux-foundation.org, ddstreet@ieee.org, geert@linux-m68k.org, hch@lst.de, hughd@google.com, jgross@suse.com, Konrad.wilk@oracle.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, sjenning@redhat.com, torvalds@linux-foundation.org, vitaly.wool@konsulko.com, willy@infradead.org Subject: [patch 65/69] frontswap: remove frontswap_test Message-ID: <20220122061501.AfZS9s8Km%akpm@linux-foundation.org> In-Reply-To: <20220121221021.60533b009c357d660791476e@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=VGGI3iX7; spf=pass (imf25.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 142ECA000B X-Stat-Signature: gju9ek6jx14yhda7eg77qw43qyqpmm7o X-HE-Tag: 1642832102-901821 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: From: Christoph Hellwig Subject: frontswap: remove frontswap_test frontswap_test is unused now, remove it. Link: https://lkml.kernel.org/r/20211224062246.1258487-10-hch@lst.de Signed-off-by: Christoph Hellwig Reviewed-by: Juergen Gross Cc: Dan Streetman Cc: Geert Uytterhoeven Cc: Hugh Dickins Cc: Konrad Rzeszutek Wilk Cc: Matthew Wilcox (Oracle) Cc: Seth Jennings Cc: Vitaly Wool Signed-off-by: Andrew Morton --- include/linux/frontswap.h | 11 ----------- mm/frontswap.c | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) --- a/include/linux/frontswap.h~frontswap-remove-frontswap_test +++ a/include/linux/frontswap.h @@ -18,7 +18,6 @@ struct frontswap_ops { extern void frontswap_register_ops(struct frontswap_ops *ops); -extern bool __frontswap_test(struct swap_info_struct *, pgoff_t); extern void frontswap_init(unsigned type, unsigned long *map); extern int __frontswap_store(struct page *page); extern int __frontswap_load(struct page *page); @@ -33,11 +32,6 @@ static inline bool frontswap_enabled(voi return static_branch_unlikely(&frontswap_enabled_key); } -static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) -{ - return __frontswap_test(sis, offset); -} - static inline void frontswap_map_set(struct swap_info_struct *p, unsigned long *map) { @@ -55,11 +49,6 @@ static inline bool frontswap_enabled(voi { return false; } - -static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) -{ - return false; -} static inline void frontswap_map_set(struct swap_info_struct *p, unsigned long *map) --- a/mm/frontswap.c~frontswap-remove-frontswap_test +++ a/mm/frontswap.c @@ -179,7 +179,7 @@ void frontswap_init(unsigned type, unsig ops->init(type); } -bool __frontswap_test(struct swap_info_struct *sis, +static bool __frontswap_test(struct swap_info_struct *sis, pgoff_t offset) { if (sis->frontswap_map) _