Message ID | 20250205092721.9395-7-bhe@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 C6D8AC02194 for <linux-mm@archiver.kernel.org>; Wed, 5 Feb 2025 09:28:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3DBBC6B008A; Wed, 5 Feb 2025 04:28:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 38C2D6B008C; Wed, 5 Feb 2025 04:28:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 11A606B0092; Wed, 5 Feb 2025 04:28:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id DCE136B008A for <linux-mm@kvack.org>; Wed, 5 Feb 2025 04:28:04 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4375A120837 for <linux-mm@kvack.org>; Wed, 5 Feb 2025 09:28:04 +0000 (UTC) X-FDA: 83085364488.16.83DAFD4 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf25.hostedemail.com (Postfix) with ESMTP id 68118A0007 for <linux-mm@kvack.org>; Wed, 5 Feb 2025 09:28:02 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=O9Cxo0bl; spf=pass (imf25.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738747682; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=tfQRbrAPzJ//p+aZcAFopIE6B9AWo00nZkaqbYuuJ/4=; b=jrh2l2mR5Ak21V2HpdzdS9S5hPBzW2FgAgWiIm+sj0Xn/Op3dlGWAg+aJsIKr6fzmKVrHA wIT7WTPPrgdXZbdBtt3Z23KlcnGytkk6qd6cdffxJXR7v1hvdUt+hJYeGMdsj6LsfaiMIG Am/96cK5Nw+Wa5HguDEfnjuIoXXQl+4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738747682; a=rsa-sha256; cv=none; b=bJdCxKeCXLSaaM/cuGl2mu0Sob1r6rYKDf7O+RVDtY0Xv6bcMZ4Thx5nwkiEoakREydud1 mEMOsgaeAcitwoaDbqTzKvdlOO9WSiBSECCDPQi3k6AYct1RB6W9sgG1D/dn50XTKmdV6E Ilw13HWrtxcqbPLlUx4obyxdUFSv4l4= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=O9Cxo0bl; spf=pass (imf25.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738747681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tfQRbrAPzJ//p+aZcAFopIE6B9AWo00nZkaqbYuuJ/4=; b=O9Cxo0bljrLhsQ6v0tkW1ropaWLeNk3kJpkfpNZhIQE4EGM3VR5Djroq0wY4fPQxHF4anU 1kHr6Ex4bexZx/+4SwrNaIa7pRxkVSMHeHzcHS7DtkmZRUkZjEHd477CxUit/zZkwyFe9R oOX+1jcoI2QQJ79xOlUMEUzZWTyHgE4= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-653-EwIqPDUzPAGcwC0RIUNX0A-1; Wed, 05 Feb 2025 04:27:58 -0500 X-MC-Unique: EwIqPDUzPAGcwC0RIUNX0A-1 X-Mimecast-MFC-AGG-ID: EwIqPDUzPAGcwC0RIUNX0A Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B08E019560BE; Wed, 5 Feb 2025 09:27:57 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.72.112.190]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F0C94300018D; Wed, 5 Feb 2025 09:27:53 +0000 (UTC) From: Baoquan He <bhe@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, ryncsn@gmail.com, chrisl@kernel.org, Baoquan He <bhe@redhat.com> Subject: [PATCH 06/12] mm/swapfile.c: update the code comment above swap_count_continued() Date: Wed, 5 Feb 2025 17:27:15 +0800 Message-ID: <20250205092721.9395-7-bhe@redhat.com> In-Reply-To: <20250205092721.9395-1-bhe@redhat.com> References: <20250205092721.9395-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Rspamd-Queue-Id: 68118A0007 X-Stat-Signature: bryghmrkd3ctft6wp8368rfwqnq4pnug X-Rspam-User: X-Rspamd-Server: rspam12 X-HE-Tag: 1738747682-592233 X-HE-Meta: U2FsdGVkX19nh+E36hauQDVjjR9y6N1m1S511oHBqa2EWyGxHAath2dZjwmoM02WKsclfJNN/1i47FKkKZQPjqjS1EgfECh5Xz72WVDvOwZ7pfFBE84kj1pY+7NqXsCzdgIVlpzZuduKaHFQr3Mg6CqpSRYUiPb20lwcOEQDqPIDStIgWVCkHm8tnG1Pr0OKJwbay0ZRqMyBu8vIX7ctNH9lmUc50OPobyZETUMVwx8HPAHY/bfQePHNeW5ZlFLCAC7zRac2VJTThVHHwzv7iA3buotKH0TI05hvX9X4+qNIMDlOCg/2Zh2k4Pckh0M8PY0LdNHehL1XgLCaRkLH9xfzdjs+8/Jqim+HSBsvP3oTK5ASMH5/cEjRujeniBXEmRtFnHvH1Htn4Sjl2BkeVUVkNGzStet0BUSAk2yvNzXYmBiTBFYM2odtHCBQ3IulvbgP0jjYstSZMTCtEpxepYQBUJy72fLyI3gKif3HEtUs/wrcVCd9pI5Lj8xXWHTcBAdPyxA8zkapz7NkRkMO/SbbUo4sw2xRJvatN7Ek/nw4UIBM0jRX25dV52uuobmjRdBEk7y//el7EZZFmq/W9x5QgjgZXT4MNkaO1OuUcUenJNV6T1aNMAp26uAnYdOu54rL49zWUeMVxjXP+C4FmjSAd4otRllAoRBaApxG5HWm2nOHMV2+LYZVw8Zu8tU75LhkuTvhf+gTVczn9YrGhtBVMCsLQdykYwyw8Vce9c4RA5j6HEZ6sFqc1RBIs80UixUP84S7hAJnGPjudonlom9T4PxgKNUYHmFm+fFaW9J0+pNxV77AO3IdftSopjc/ZDwh950UxxRG3oIh/3uqtdlbu6dR4yE7Y6loM2RAmRTnd72FpJOR/K7VkKBJW/3ONpRfaIewsQ1xDYz5aLLVQAnGEB6jU1xjcyCVOGwXdMIuo2On8Euzezi2Y7uv2BmSe2TheDdmmB5l5azDfrR 2kLOk6ui orLGeWKTSUIk4Ml2hfWFaDJfsrBBD4B4X2XfV1eCEBMyDtBPKMrJuT4Q5RnNQSJN4iqPOLc+/XPN3Us/VcBswohnBKEkEWc2uhP+gt4sxVsYlziVWBbuQ7Mm0nUNn8y0PVEJY2doJLdIuYPe03xPKhBVoXmFis89gB9GKXYDnBUyI4fr6c/EbOzLEzcDef/spGSgUrWQNfoPFb7rNjn0DAs/bAyTTCZIOeEaz2g6tcEmHgqSYMRQr5QCO/BbhYT5N7e9T9cZWJ50R2lTZxEC8aDvBpulKeLWZXg6lqxasEdkFg5AKGkUpE/ucSNwUqKEhyrYsBSxjCRl+X6FPXjLvdD4yuxCjBojTyoap90+W7fmfBMlRWhWeCeWfKw== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Tiny cleanup and improvements about SWAP code
|
expand
|
diff --git a/mm/swapfile.c b/mm/swapfile.c index bf284ba16198..9ee2238042a5 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -3789,8 +3789,8 @@ int add_swap_count_continuation(swp_entry_t entry, gfp_t gfp_mask) * into, carry if so, or else fail until a new continuation page is allocated; * when the original swap_map count is decremented from 0 with continuation, * borrow from the continuation and report whether it still holds more. - * Called while __swap_duplicate() or swap_entry_free() holds swap or cluster - * lock. + * Called while __swap_duplicate() or caller of __swap_entry_free_locked() + * holds swap or cluster lock. */ static bool swap_count_continued(struct swap_info_struct *si, pgoff_t offset, unsigned char count)
Now, swap_count_continued() has two callers, __swap_duplicate() and __swap_entry_free_locked(), the relevant code comment is stale. Update it to reflect the current situation. Signed-off-by: Baoquan He <bhe@redhat.com> --- mm/swapfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)