From patchwork Wed Sep 14 02:17:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Sun X-Patchwork-Id: 12975489 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 5A85CECAAD8 for ; Wed, 14 Sep 2022 02:17:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E0CD88D0001; Tue, 13 Sep 2022 22:17:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DBD5E6B0073; Tue, 13 Sep 2022 22:17:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C5CA08D0001; Tue, 13 Sep 2022 22:17:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id B3D6C6B0071 for ; Tue, 13 Sep 2022 22:17:52 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8B582802B0 for ; Wed, 14 Sep 2022 02:17:52 +0000 (UTC) X-FDA: 79909080384.06.6A57A5E Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by imf13.hostedemail.com (Postfix) with ESMTP id 0FB942009F for ; Wed, 14 Sep 2022 02:17:48 +0000 (UTC) Received: by mail-pg1-f179.google.com with SMTP id r23so4438593pgr.6 for ; Tue, 13 Sep 2022 19:17:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=s5628q2IWcL7lPRgxwbc0TKBX+FlmvbMxHcTpQHaeS8=; b=fneRxmrvX+QSRTxXBPTw7YMYCto7gLhXz3UJdNbai8aM9jtdLQfHYQsHUc8LAFCGo1 6PJ+WYS+MFkEm3tWXbx/ytM63trIVule+JHqyRsyEpjYotDJm7BvRd+mqFB+kI7CRwyP fndHq5l2OJ1x526iSvykdxkQiCKiWahnFHm5IcM+65viu/dW6Nieccmzc39jBflH6F6J /OKeXCjcKciSM+dk9uP5TQt3eXoPMkXaqffexvXuzps3dUgNxI8/JyHGhH2z2sWcL2iH rTW8xlOfd+xQ8FPp+/HP86DeA+IMkhzEVxtaLuG6CCqZAaR6xqNdRKQmAnKgVid+Mkf+ 9Uxw== X-Gm-Message-State: ACgBeo0Ig3axdXjTAumCpk+2rkIBmPaJF3+cWxm/AYWdtGdHRMUyyM6+ 91/+WezTRcLIkqR5167uk5p4A0MiNXikXDIA X-Google-Smtp-Source: AA6agR5vZpY7gIR2rF5G72kS3asgm4sRqIpdVVBPfPXFvxfmLmI3uRvHAF6p/u6pGj/DfFNZVfP7oQ== X-Received: by 2002:a63:5a01:0:b0:434:8bd7:284d with SMTP id o1-20020a635a01000000b004348bd7284dmr30637936pgb.538.1663121868135; Tue, 13 Sep 2022 19:17:48 -0700 (PDT) Received: from sk-Yoga-14sARH-2021.lan (144.34.241.68.16clouds.com. [144.34.241.68]) by smtp.gmail.com with ESMTPSA id jg19-20020a17090326d300b0016f1ef2cd44sm9154461plb.154.2022.09.13.19.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 19:17:47 -0700 (PDT) From: Ke Sun To: Matthew Wilcox , Andrew Morton Cc: Ke Sun , linux-mm@kvack.org, linux-kernel@vger.kernel.org, k2ci Subject: [PATCH] mm/filemap: Make folio_put_wait_locked static Date: Wed, 14 Sep 2022 10:17:38 +0800 Message-Id: <20220914021738.3228011-1-sunke@kylinos.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663121872; a=rsa-sha256; cv=none; b=vyDqd95SrJI9dXrNUAHiqWasO3ZqFpCV+QkkXqcXaSjy3RR5hiufsqBkhXUf8TW206KD7c igYWKPrQWEd8tNpX+ErzFZHgCcciuoJGI2TQwb/yipC2xywMEl23HsDFuJit1vLE2/pRCQ Vc4fR14Dm0skgmBrk4Esk+qYL+pRUnA= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf13.hostedemail.com: domain of sk.alvin.x@gmail.com designates 209.85.215.179 as permitted sender) smtp.mailfrom=sk.alvin.x@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663121872; 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:references; bh=s5628q2IWcL7lPRgxwbc0TKBX+FlmvbMxHcTpQHaeS8=; b=8OS6diXYRhl9kmugwNpgT0aZte2+CxkCN5PntxU1a/cQSskcqvuF8gnGghARwFKNTfN+JA jkawoq/JRdPpHC7q2IYobvp/dticfge8kn7ZYz4EUzQ+q5EUXlHo4aqiplVFn3clnBp4Lp dZbAy+QffgTij8T+xY+m7KDCeVKko24= X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf13.hostedemail.com: domain of sk.alvin.x@gmail.com designates 209.85.215.179 as permitted sender) smtp.mailfrom=sk.alvin.x@gmail.com X-Rspamd-Server: rspam11 X-Stat-Signature: uon3ann86fhfgygji5sprn9tg1rjbcqe X-Rspamd-Queue-Id: 0FB942009F X-HE-Tag: 1663121868-322418 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: It's only used in mm/filemap.c, since commit ("mm/migrate.c: rework migration_entry_wait() to not take a pageref"). Make it static. Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Reported-by: k2ci Signed-off-by: Ke Sun --- include/linux/pagemap.h | 1 - mm/filemap.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 0178b2040ea3..82880993dd1a 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1042,7 +1042,6 @@ static inline int wait_on_page_locked_killable(struct page *page) return folio_wait_locked_killable(page_folio(page)); } -int folio_put_wait_locked(struct folio *folio, int state); void wait_on_page_writeback(struct page *page); void folio_wait_writeback(struct folio *folio); int folio_wait_writeback_killable(struct folio *folio); diff --git a/mm/filemap.c b/mm/filemap.c index 15800334147b..ade9b7bfe7fc 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1467,7 +1467,7 @@ EXPORT_SYMBOL(folio_wait_bit_killable); * * Return: 0 if the folio was unlocked or -EINTR if interrupted by a signal. */ -int folio_put_wait_locked(struct folio *folio, int state) +static int folio_put_wait_locked(struct folio *folio, int state) { return folio_wait_bit_common(folio, PG_locked, state, DROP); }