Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp634736lqa; Sat, 27 Apr 2024 18:47:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWU0knlt5JHae9SBSPnzjIIiGIxXpetHKFTYsIiOnlwXVZttuoIsAiyME9dz6zLitiyGauxidWh9xg3janJVPkUWKBA11jAXh4x7K9TCA== X-Google-Smtp-Source: AGHT+IFJOGV5itJTVdzwUs+o3drXWhoeqbQMQ0Y1FORqtMJfat+BEffuEakRuQAcFwxMU6neKh8K X-Received: by 2002:a05:6122:3695:b0:4cb:fc25:7caa with SMTP id ec21-20020a056122369500b004cbfc257caamr4500470vkb.14.1714268873326; Sat, 27 Apr 2024 18:47:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714268873; cv=pass; d=google.com; s=arc-20160816; b=cpirZzSNUs7O30EdJuqoCJqmgi6Kv5XC4if7eCz67va8nERMz8PWZt+FcjRWLQ2VNk wmgbWNKkkASLyDkjJE9kP9lnGobFtySgaWwXmN6se+ZRV4L4CHerAzzrd714QndI9BxE MEcBRv5XYp61VVyKs/t3GETm1zs6dE5cNQEEP80731+02ZDkWtfpMoLFUxBR/DyfAiJG ieMiDC6f9ubw9dybUiHPQTas+uXk7ZoRH1MTzO6trhdBCxin9gjKJGloXl0K+R4E4gvF +zXk3NxfbOSyQd/6DAV0ehDBTEt3Q1HhJGx3eaOVJpeIkp4dWTJk9K6R/ZdP23aIJN4e aTZA== 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:message-id:date:subject:cc:to :from; bh=8GtCG+ei9YWRj+HS22aB63iPLrO8iTaTxxI9BdGtoJ4=; fh=HiGk3r3AgJHj+5iOE9Xby2LqZ1eqa0ZT92KK0MfMTWA=; b=y5gFsaQtwwhtHEm+nPoApRLZP3PUH1ae51jzgL/4p3q4WqXdijKXEaB8Kp4y5RgAkY jKNqXjYt1b7QfHna/tvZhbu1Kkc5SgFGQVrnFadrknGkJ5HcmqQ9Q1zo4D/N18tVpzGP 4611/ejSxvOlgRswD7/Qtvp8fGq1YYBaCMpXTNRkcvT11qo0qqVWBmUFEW0iYi+yFMYf LabqXZRPb8JdNvyodN3GYExWb+zP2jhfW3wB8PRgKKSsWbJ5CNwFhKFRKhPCDI7k3GWm cc58pXACbNdfxMv+8lv67HRrMIXrGdQoY7E41P/u/bH+envAcw8epDUD4axXOuYVIFFz R9dw==; 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-161217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161217-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z7-20020ae9e607000000b0078f1530956asi18482554qkf.247.2024.04.27.18.47.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 18:47:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-161217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161217-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0FA4E1C21256 for ; Sun, 28 Apr 2024 01:47:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B4851362; Sun, 28 Apr 2024 01:47:44 +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 2CF3C818; Sun, 28 Apr 2024 01:47:38 +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=1714268863; cv=none; b=WKQZvtNED5zvgtl1uZBXBd3eGmBg4hQ/caP3tSTjrqerNHiCYP0IZNkCcIFWzomL8FPt9rcafraQKnrZER2KwJUa9njELy/vJww51vnsVYHJGjGz8QaFZ3IHDEHFamIXOMMg9rT3UAsCsKWjQppkA3KdFlzXf/XMBacxcV1CRlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714268863; c=relaxed/simple; bh=ikOi+uDK8epeGqvxSfiFVSemIj6ySgZQCVG2dkQQHT0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HnMlPmwlEAW9kb6EuZxYFLetlbP9EA61kGAYOs5gJk/XB+Uo81SoVXMfaVgUp1oKbWABcOn6Xr28RaKEGhNCmhObbsqJcJVXna8AkbpojizGQOVSgiKTa0fKa+7GCqAUtW0RWD/SgaBvrMFRPPpPBVSXBPMFyuLXHtHBQLk5JPc= 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: 481ae35e050111ef9305a59a3cc225df-20240428 X-CID-O-RULE: Release_Ham X-CID-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:59f421bb-1977-4ec0-9785-0162880479c4,IP:25, URL:0,TC:0,Content:0,EDM:-25,RT:0,SF:-11,FILE:0,BULK:0,RULE:Release_Ham,AC TION:release,TS:-11 X-CID-INFO: VERSION:1.1.37,REQID:59f421bb-1977-4ec0-9785-0162880479c4,IP:25,UR L:0,TC:0,Content:0,EDM:-25,RT:0,SF:-11,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-11 X-CID-META: VersionHash:6f543d0,CLOUDID:4d174e793c43c25dc3d9e9d0d80dc204,BulkI D:240428094735YIB4OV1A,BulkQuantity:0,Recheck:0,SF:17|19|44|66|38|25|102,T C:nil,Content:0,EDM:1,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,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_FSI,TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD X-CTIC-Tags: HR_CC_COUNT, HR_CC_DOMAIN_COUNT, HR_CC_NAME, HR_CC_NO_NAME, HR_CTE_8B HR_CTT_MISS, HR_DATE_H, HR_DATE_WKD, HR_DATE_ZONE, HR_FROM_NAME HR_SJ_LANG, HR_SJ_LEN, HR_SJ_LETTER, HR_SJ_NOR_SYM, HR_SJ_PHRASE HR_SJ_PHRASE_LEN, HR_SJ_WS, HR_TO_COUNT, HR_TO_DOMAIN_COUNT, HR_TO_NO_NAME IP_TRUSTED, SRC_TRUSTED, DN_TRUSTED, SA_TRUSTED, SA_EXISTED SN_TRUSTED, SN_EXISTED, SPF_NOPASS, DKIM_NOPASS, DMARC_NOPASS CIE_BAD, CIE_GOOD, CIE_GOOD_SPF, GTI_FG_BS, GTI_RG_INFO GTI_C_BU, AMN_T1, AMN_GOOD, AMN_C_TI, AMN_C_BU ABX_MISS_RDNS X-UUID: 481ae35e050111ef9305a59a3cc225df-20240428 X-User: gehao@kylinos.cn Received: from localhost.localdomain [(116.128.244.171)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA) with ESMTP id 1783356139; Sun, 28 Apr 2024 09:47:33 +0800 From: Hao Ge To: willy@infradead.org, akpm@linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, gehao618@163.com, Hao Ge Subject: [PATCH] mm/pagemap: Make trylock_page return bool Date: Sun, 28 Apr 2024 09:47:11 +0800 Message-Id: <20240428014711.11169-1-gehao@kylinos.cn> X-Mailer: git-send-email 2.25.1 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 trylock_page return bool to align the return values of folio_trylock function and it also corresponds to its comment. Signed-off-by: Hao Ge --- include/linux/pagemap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 2df35e65557d..d8e2f7e0f66f 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1014,7 +1014,7 @@ static inline bool folio_trylock(struct folio *folio) /* * Return true if the page was successfully locked */ -static inline int trylock_page(struct page *page) +static inline bool trylock_page(struct page *page) { return folio_trylock(page_folio(page)); } -- 2.25.1