Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp121883rwb; Tue, 8 Nov 2022 23:27:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FUzclCPGKt0xFNR7o4GaH2lRlph5zHuW/7fRunaQJfUqWA/3HJc0W9Oaiu0z/1CYfu36r X-Received: by 2002:a17:906:c785:b0:7ae:8488:1e7f with SMTP id cw5-20020a170906c78500b007ae84881e7fmr4227969ejb.382.1667978829627; Tue, 08 Nov 2022 23:27:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667978829; cv=none; d=google.com; s=arc-20160816; b=QYKioKui81ArX7puCX6VExc4Z7RGEjYWPw1/Nku1TDUOiVUUbwXPFXqd7qLX/c1rVg 1CGWVYohDbXLvX5pLi/XH0FwRR4EVE/aPKC8YEnzw9TC/px4aWgg0awL7Ls68pS3KtIp zoI7+jH55zmLCdQsPGhQEi9wMBt3vG8FkeeYaAO2Uv6nt5EoNS3bBjBAyueoLuTO9XJw 3tBrGd+LiKgqmgpWy+pJvl44J0zidE07iQsGBOeH0/or90kopOFJL9WBqlh9B30Jfkbf TI2m0SibBMMAodIHcMFGkHASTwpHWGMAK02BZxoM1MI5jkpcMd67XpPD0AcesEndlxmJ kfpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3+LWY7rOfZY5YRaRctYvHIq2Smel5cZR6qlqZRITIEA=; b=hqbl3F3phf8tHHrL+jgDnMfUjKnpWImaR/hzwE8iiH74uEw+3tXlynGdmMAUXkNV3h L+5z5kySPj0afO+00ok7asx9Qqbgebd3/erqMNNactYPuvpG11PujRo0FI7/qhcw5ZKz u23+vaj485g9s2Zw3b+Pob3WmIWsV2HL8gUIJlcWfiTDnLJb9bGf1pJBl2SkeMi7XWyu xJNgbgUdf5yiqPvXZEYe0B5CB2sxspso19SByjgIp1h3TjzjanabZxQbSgZTedEIjTxA fcq4xYJZFa6H2Le4JQDtW7aSd2XZmVhhZnnZMkKZoUvkKiKkumKXNoSGn5D+0FcBONEg Et/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DqCYsqQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp14-20020a170906c14e00b007a92b00c094si17161400ejc.421.2022.11.08.23.26.46; Tue, 08 Nov 2022 23:27:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DqCYsqQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbiKIGiN (ORCPT + 93 others); Wed, 9 Nov 2022 01:38:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiKIGiM (ORCPT ); Wed, 9 Nov 2022 01:38:12 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D30C1A05C for ; Tue, 8 Nov 2022 22:38:11 -0800 (PST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A95QeDH008034; Wed, 9 Nov 2022 06:37:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=3+LWY7rOfZY5YRaRctYvHIq2Smel5cZR6qlqZRITIEA=; b=DqCYsqQRYiiITVG7TXe41v+sdWeGH8DXQ7XBVo2uwUMxoaMowvXB1lAJWGmo8PX7si88 IDle+Gzgbo9nw4Mnw/g1cym/69lJFpO3dlPYcqkAnCdy/oLiI/uWeOT0tP4FQYucW8lP ZK8N9EG5t/WIUdpn2iFO6qUt1KbXWiV9M4n9mrckCUJfdtZkCY2jdM5bDCykX2tGtz1e 2zp6mjZlq8R/lj9+n6jVlwH8yJ5mIZdpbBX86VREpR2lkjFtnS6bIsC9bDspeEDocKQw u8s5VQQkTmzQuqFRGTLvtJ4DEZkvrGZ/2ZZY9+NVVwBVQQhLRaMJ9zhU8hJegfHzovJb CA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kr62k1t4e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Nov 2022 06:37:06 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2A95SHbb013584; Wed, 9 Nov 2022 06:37:05 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kr62k1t3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Nov 2022 06:37:05 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2A96ZAqs002383; Wed, 9 Nov 2022 06:37:03 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma04ams.nl.ibm.com with ESMTP id 3kngqdd619-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Nov 2022 06:37:03 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2A96bdAj51118414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 9 Nov 2022 06:37:39 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 506EB4C040; Wed, 9 Nov 2022 06:37:01 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 189474C059; Wed, 9 Nov 2022 06:37:01 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 9 Nov 2022 06:37:01 +0000 (GMT) Date: Wed, 9 Nov 2022 07:36:59 +0100 From: Alexander Gordeev To: Linus Torvalds Cc: Hugh Dickins , Johannes Weiner , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/4] mm: introduce 'encoded' page pointers with embedded extra bits Message-ID: References: <20221108194139.57604-1-torvalds@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221108194139.57604-1-torvalds@linux-foundation.org> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: V-p-gepv-JjtVCpdUPM3yXLfoFt-c4gD X-Proofpoint-GUID: rv-w7d64gYvLTMH2r6geoPP9I4zXBO2L X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-09_01,2022-11-08_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 clxscore=1011 priorityscore=1501 spamscore=0 mlxscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=831 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211090050 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Tue, Nov 08, 2022 at 11:41:36AM -0800, Linus Torvalds wrote: Hi Linus, [...] > +struct encoded_page; > +#define ENCODE_PAGE_BITS 3ul > +static inline struct encoded_page *encode_page(struct page *page, unsigned long flags) > +{ Any reaction in case ((flags & ~ENCODE_PAGE_BITS) != 0)? > + return (struct encoded_page *)(flags | (unsigned long)page); > +} Thanks!