From patchwork Mon Jul 22 02:39:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Sun X-Patchwork-Id: 13738215 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8254AC3DA61 for ; Mon, 22 Jul 2024 02:40:34 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sViyV-0000QW-La; Mon, 22 Jul 2024 02:40:32 +0000 Received: from [172.30.29.67] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sViyU-0000QN-88 for linux-f2fs-devel@lists.sourceforge.net; Mon, 22 Jul 2024 02:40:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=elEEYZRwm6kdR8yLX+1o/shGO6nrBPkjdm0LE5hLK6w=; b=FfEpohrrI6PLKVNv7hnTD3+awO 4kZGoWKZ4gFgdTMYicL3/rsk4siSJwCxswemf6/FTfUsSnSp8/6ElVeA2aoGrOjMu3bOyaubi7kOb UVJmfiIOVBT0yy2RUmVJPu6OGUWbFKJNAY0A2LqpeEmRhcO+S9Wq0ZKgwOe2MSg2OnfY=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=elEEYZRwm6kdR8yLX+1o/shGO6nrBPkjdm0LE5hLK6w=; b=M URsP4bHc/4dWN22Gw9mY01TsxkgH8EfZysxuH+T+iZWifjMM0Uq+aXE+W/r88EXMUykTT6ECmAIsP Q5L4OxGecuK1kItVkaF2DwTngfLYggIEzHgct/2vklQ6N7vvlH+j3u4RTtm7SIe5dJfimF2H5gr3/ FDurq8byWaquz46s=; Received: from mail-pl1-f177.google.com ([209.85.214.177]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1sViyU-0002Ab-Dl for linux-f2fs-devel@lists.sourceforge.net; Mon, 22 Jul 2024 02:40:30 +0000 Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1fc692abba4so23032355ad.2 for ; Sun, 21 Jul 2024 19:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721616024; x=1722220824; darn=lists.sourceforge.net; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=elEEYZRwm6kdR8yLX+1o/shGO6nrBPkjdm0LE5hLK6w=; b=Qe3mvnwYiopWJd9uA2dSAdmEGjBGePGvfMsUi3qCVlnp+I4dXm2wE9Q0KH5REP6YZX PxVVr/2IFLHFq+eTCg5qj7pNOKVuf6W/n/sCz5EwVZdPWtZKrW9YIylzUeDdUcefWiXE NYKdg3tEBRQCVfZJdd/2vIiTEnJ/rl4y4DWbHn1hHconffwqEjveAthfglue0DwJtct3 axXsYSYgtCq6ZVe41bbDlBVBOfhAn3FIvlGMo72P54qLodcdE3dd7dwePLfid8jCQv4B 2pnurukMQfyV8j8N3YF7YCzfuV/8LSTAzu73e3hNJjRkLta1950bQw8GmgWLr+qy6pxa 2UyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721616024; x=1722220824; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=elEEYZRwm6kdR8yLX+1o/shGO6nrBPkjdm0LE5hLK6w=; b=vtUSS5hiM3hUmZ40WXewEnoe6nRLLqXhHsPcHQ8ZmE/Ji9/S3Uaq+1qfoEZ5Y+AZRt PWE5m1FofuuQygNk22jCDmHjJbU4qWGgwk0UlpFcMOIJYR9eQCPAM7XGkLV6IfnP7jgi e8k8s4ckwy4CvIYMMUTZi8bjvVUPqSXZVvF0H3HTNoHAnpF83SO3NPpLHnhmtaHJgDiF IoW3FUz7s/2IQHG/9eDri623ommPkCDhKZb9Ydw1koh6peviLDYNVEXO3g6rYvxh8QGF LIpW6P3YUsOAkDimOv2CVIDNBH/T2CBQuDw3JdwwzQ5WZ9Ouzmr460yekXNkXFAb/U3z rLlg== X-Gm-Message-State: AOJu0Yz7UVuZiGX6uiwfcTwnQqoSPluH0l0f6murlNrXLSBQiMAAwlKS ycpkaZmI4TN4rSesSo0s4RY1fvoErX9Hm241YMy+jJA+2lbiG08zZqF7yNjtb2M= X-Google-Smtp-Source: AGHT+IEKI4x1Wl5vEQnLTJBYAlodFx72aEbEvTd8pBGZHw4GzeBO9F+7+fB1ZFOG2INQebf0Jct5rw== X-Received: by 2002:a17:903:22cb:b0:1fc:4aa0:fb14 with SMTP id d9443c01a7336-1fd74520166mr37051425ad.2.1721616024246; Sun, 21 Jul 2024 19:40:24 -0700 (PDT) Received: from localhost ([114.242.33.243]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fda360473dsm4798135ad.203.2024.07.21.19.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jul 2024 19:40:23 -0700 (PDT) From: Julian Sun To: linux-f2fs-devel@lists.sourceforge.net Date: Sun, 21 Jul 2024 22:39:12 -0400 Message-Id: <20240722023913.54788-1-sunjunchao2870@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Headers-End: 1sViyU-0002Ab-Dl Subject: [f2fs-dev] [PATCH v2 1/2] f2fs: fix macro definition on_f2fs_build_free_nids X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julian Sun , jaegeuk@kernel.org Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net The macro on_f2fs_build_free_nids accepts a parameter nmi, but it was not used, rather the variable nm_i was directly used, which may be a local variable inside a function that calls the macros. Signed-off-by: Julian Sun Reviewed-by: Chao Yu --- fs/f2fs/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index b72ef96f7e33..58721a55f173 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -20,7 +20,7 @@ #include "iostat.h" #include -#define on_f2fs_build_free_nids(nmi) mutex_is_locked(&(nm_i)->build_lock) +#define on_f2fs_build_free_nids(nm_i) mutex_is_locked(&(nm_i)->build_lock) static struct kmem_cache *nat_entry_slab; static struct kmem_cache *free_nid_slab;