Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp207144lqp; Wed, 20 Mar 2024 20:12:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaO3k75ji6VFOROgNhBLPC0NZGl41suCkKICHU27R2G2vKQmbAjy2iqLdOUelAauqqHYyS97+0z6zWK5N6zI5+mAt5IGrJevSobF9H1w== X-Google-Smtp-Source: AGHT+IG2EkCx24egtyP4c5hSBSSz7gfhc1qcW1mOu6aiMZmoINRjlwRjfKMy9jj3PYQhE+OFDtQU X-Received: by 2002:a05:6358:3223:b0:17c:297f:df62 with SMTP id a35-20020a056358322300b0017c297fdf62mr879551rwe.16.1710990758101; Wed, 20 Mar 2024 20:12:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710990758; cv=pass; d=google.com; s=arc-20160816; b=muhGOTLRF8hWXFXTQoGVzycJsaBTi6IxREirfI/Eyo8N9d7LLciFrtiZuuaWZidfhG NYVRPFH7wPg0jPa7cDPb4nzdOOS4DPPmFWFCJCJf/+T1Y6cYmFS22VgXelhJy+CRuUoQ 63Yqw5HB34C3Oi09csBFgPJEa6CAmNNglrviq/9XLwu6lVyYrftcV4FAnwxSJz4UZ8rQ NYEWa6Calo/sK4m5EPKMR7J+tU3dDHoX2cPStvS31wBHQAAjBF4GViqeHA38AzT6IUUy /56PfMLH/SXUIsS0QeEf5nFh5SHMPwZoxFtMfKOCBTWb1QtdqnMFL5jcww4UjUB4EgIn bC5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=QbkPakD3rWjEB9f5mc4EwxUNDC4B+kMLJ9zOvJ4/m/8=; fh=sNG6mKMVTGJsSYfk9Dpyd/0TKP6W9Yip7w3GHnbivyI=; b=Hemo0Yyob9GCVvB75q0PT+4VLi03fHkEMx4i36+atMenKWt2lK+z6as+rzBCnh7v9y wsc/oIV6D39oCQb4JooaMvytGCyvLdcecZxaYvqKoab38wKE9U2XqxTWKehekj9eudWq o6ifsAogyTSs5zKgYZ3dbJyJltMyVFozdi8CLrz1rhRYha7T0rqg2paIrZvQGrB3KKgj l9434Jso4ajjRn7kAdA9tEnMnDAIgXHtFqVMbO3MeHzFCuM+MeVD21j4jkRVXJ20AU2u 2YaRoVKIG+mkLkzY1/Lsjc89SemB7anqJoVmHPP7ppXCMU40jXDHoHF43Wf1W878Sy71 4B4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-109616-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109616-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z10-20020a17090a1fca00b0029ba2f720b0si2659976pjz.55.2024.03.20.20.12.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 20:12:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109616-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-109616-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109616-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 73CBCB2144A for ; Thu, 21 Mar 2024 03:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FF2E79C3; Thu, 21 Mar 2024 03:12:27 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B26A44C99 for ; Thu, 21 Mar 2024 03:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710990747; cv=none; b=ejVFYmD62JvzViEYKOqqITQTzd8S21CfBhF9Zbfdl1MovAGIn7COZwZ3wVKjinFwWT5/4yZ9ANMMHubqDeN/2zy+UF6a/Ta7A1zUSC2LjalHniD+zkapu7fGM7/FdPDDSZdHUKJKZI9dblAdkSxXxOgYBllBDYaI3dxSUTfq7h8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710990747; c=relaxed/simple; bh=yMT/79lg6G+71wcFLn+iQt1l1wb0t5wf1tbMlAzqFZw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XJkMV1lGfWCPHdGvRejC3CxYTgZJ5qVusgK9ljPnWtXGLOHEZU3htRohxt9Rj97kVCCAZt55Xx0SJEvY0zuchZnf/jfluinnNWUXZ6lP5JcCLX6PtgWGO1CBYeLhh9tSiAGlqcEaTvVIyxUso2y82eyC8P2NojtmAfWsKQa1w64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 6735a93c7a3b430e91ec6b75937a2094-20240321 X-CID-O-RULE: Release_Ham X-CID-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:41596560-c536-4576-ad85-a3b42e612145,IP:15, URL:0,TC:0,Content:-5,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,AC TION:release,TS:20 X-CID-INFO: VERSION:1.1.37,REQID:41596560-c536-4576-ad85-a3b42e612145,IP:15,UR L:0,TC:0,Content:-5,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:20 X-CID-META: VersionHash:6f543d0,CLOUDID:5857bf81-4f93-4875-95e7-8c66ea833d57,B ulkID:2403211107176CND0Q3R,BulkQuantity:0,Recheck:0,SF:66|24|17|19|44|102, TC:nil,Content:0,EDM:5,IP:-2,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil ,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 6735a93c7a3b430e91ec6b75937a2094-20240321 X-User: gehao@kylinos.cn Received: from localhost.localdomain [(116.128.244.171)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 1092030556; Thu, 21 Mar 2024 11:07:14 +0800 From: Hao Ge To: akpm@linux-foundation.org Cc: willy@infradead.org, gehao618@163.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Hao Ge Subject: [PATCH v2] mm/page-flags: make PageMappingFlags return bool Date: Thu, 21 Mar 2024 11:07:12 +0800 Message-Id: <20240321030712.80618-1-gehao@kylinos.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240307131304.169859-1-gehao@kylinos.cn> References: <20240307131304.169859-1-gehao@kylinos.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit make PageMappingFlags return bool like folio_mapping_flags Signed-off-by: Hao Ge --- v2: Send this patch on the latest version --- include/linux/page-flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 652d77805e99..5ee2d0ab62c6 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -668,7 +668,7 @@ static __always_inline bool folio_mapping_flags(const struct folio *folio) return ((unsigned long)folio->mapping & PAGE_MAPPING_FLAGS) != 0; } -static __always_inline int PageMappingFlags(const struct page *page) +static __always_inline bool PageMappingFlags(const struct page *page) { return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) != 0; } -- 2.25.1