Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4991346iob; Mon, 9 May 2022 06:28:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVypCSK78evFoWie71Fkmu5LUsnCvNscJi+hG2P3fZjj9Yha3TQ2uZtAbMSW1s5vbYVQpl X-Received: by 2002:a62:e80d:0:b0:50d:8f8e:ffb8 with SMTP id c13-20020a62e80d000000b0050d8f8effb8mr16238271pfi.37.1652102889704; Mon, 09 May 2022 06:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652102889; cv=none; d=google.com; s=arc-20160816; b=OM/AjKQPtxTpJ82xxqClTtvnMCNmXmCe/vbedvZUzIsfkZbzeeV3kLmRTm4kCzlxw2 kXTG6WIZ5k2tjWXBg8iHfZUIm9OpSxY8xIPsFmJ5mHndWYi3Gg5IXqqd+oBPyBvXnFq6 Qpg7X1YIgYRvfqNEIe/7bK8Pf45TK4UK3GeS0srE4DehSj67/Ek9rEwjDR+mnZQIs5uX tdb/pv12I9VrAyIZr0W+WkYD36XxEdMPC1yjLbrzp73sYHCSXEVjyXu/nnfiKzUUme7Y s0Bk0DtRzJxGySblHG/69zsWy4kl2t6L/4T9X9Fl7nDrOYOEOBZZmB1adS4Rq+842+tQ +5AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=yvhY5zmkbsBQZw+xtJCRrFSi64e228ZcvHG/WkaK6A4=; b=calcOW6qUqLB1qIBG2mBccOOGb9zBM7mahpSDHxBzVM08B2oOMUjmW0XhpyroSiw/c tuFy79r4N1epWPVR8hF2TJBZEpq3UEIcoaha9QvDoiIoaR5t5KjawgqK+02SBzFCYCX0 YSC8jdAS8jdibE8KFIYNqwVVLLCGZtcjQYknASa/kGLzdU5hvBPxXE0OaEsE8TmHbMHS Bo+utjOC2PmgN/16KcrhmCFYuaJ4XzOZ6ctNB+mrF96iwtukwmEwLGXQRKgHUjt3UXT3 fCVucgHMCFcsU1t1osW5kmnchwmOMXSUcd3y7dC2pKy6Ed1gzqdrp5ThUbOUNsgNgRTj YTrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y13-20020a1709029b8d00b00158951ab205si11937467plp.429.2022.05.09.06.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 06:28:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CBDB202B13; Mon, 9 May 2022 06:16:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235484AbiEINTO (ORCPT + 99 others); Mon, 9 May 2022 09:19:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235351AbiEINSH (ORCPT ); Mon, 9 May 2022 09:18:07 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDA002A9742 for ; Mon, 9 May 2022 06:14:13 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KxhSn6J88zhZ3L; Mon, 9 May 2022 21:13:45 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 9 May 2022 21:14:07 +0800 From: Miaohe Lin To: CC: , , , , , , , , , , , Subject: [PATCH 13/15] mm/swap: clean up the comment of find_next_to_unuse Date: Mon, 9 May 2022 21:14:14 +0800 Message-ID: <20220509131416.17553-14-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220509131416.17553-1-linmiaohe@huawei.com> References: <20220509131416.17553-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 10a9c496789f ("mm: simplify try_to_unuse"), frontswap parameter is removed. Update the corresponding comment. Signed-off-by: Miaohe Lin --- mm/swapfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index d5d3e2d03d28..7ead5fb96d9d 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -2007,9 +2007,9 @@ static int unuse_mm(struct mm_struct *mm, unsigned int type) } /* - * Scan swap_map (or frontswap_map if frontswap parameter is true) - * from current position to next entry still in use. Return 0 - * if there are no inuse entries after prev till end of the map. + * Scan swap_map from current position to next entry still in use. + * Return 0 if there are no inuse entries after prev till end of + * the map. */ static unsigned int find_next_to_unuse(struct swap_info_struct *si, unsigned int prev) -- 2.23.0