Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10414974rwp; Thu, 20 Jul 2023 21:37:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQRocNf60VkT2HcX7cA7ShHe8W8VZbXcawu/aq3jJ8drhVh33JGCN4qoubjUzzs8d4Euq3 X-Received: by 2002:a05:6512:292:b0:4f9:5396:ed1b with SMTP id j18-20020a056512029200b004f95396ed1bmr453083lfp.28.1689914237727; Thu, 20 Jul 2023 21:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689914237; cv=none; d=google.com; s=arc-20160816; b=aNF+L+HqkCV8J5Hi++E7tNEtSWc8OX1Mr+FP5QSbTC1kIvdaxjY3PGfftFIakD7Qu3 YivBOVyLNYPw0Dsk8dhs9BipuPMNm05jswmHqr7xubbuoBxw7twNkFbWFHW7vYNrcNqT S54ohhGpHo2SZG9FazDSAC+aQA5W9LkpP8PEBgBZU3ccby/StBMP6vpX+7ZGR9Bdo0I4 XuHaxcY/h+xpRV51lN6qNAcxBT5Fk+AugZaFyd3BC6MH8L73AaRGUwImJEkg1egUqojL vlnm7VAI663ogK7U94Hz5lAPSE90EcjBdi3SSLYyYfjwzBvGFbWKdkKdANrI2gw+xArv 6VQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=zo835sOQlkNi+gXrC7/NZ+6IMnD62tl6Jo3/pmUtZDE=; fh=0sj70TpmI5ysZ31CNl1tBaO+qonk68aw5VXPpdRJc8k=; b=GHD8zpN7VJMJjhyeUZlQz+KL9//B6Ngqw6/oJuwmVGI5vD21vZlBTMpmPKVAspKXQu ix4KCGJ6jDAbC0HWXd/5+tbEQgIhZVfq9IF4eTiIyHllvu0wpLH2lIR0be2PzHkQTi9r 418bRE2YI8NBI5eP7xDD5hIqMgN42j+LxY5ifO/YgdOk72NeMkdzSZqrNqcrxuOUSsRh 4HIEn/6pSdBs2ieCX7rzoXhvBfuC9IknrcPO9Y+qUHm7rvXbjfNytXASoEVk6x0ToIiv YoRZBeZVYl8cIsfn3h6HJw3vmEkPwvhwpLzh5ZQkykFOkpVr+zgwOeIgI7QGFRSGIKYG lbpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S+vXr5Qc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o23-20020aa7dd57000000b005219bc76c7esi1830790edw.113.2023.07.20.21.36.53; Thu, 20 Jul 2023 21:37:17 -0700 (PDT) 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=@collabora.com header.s=mail header.b=S+vXr5Qc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbjGUE14 (ORCPT + 99 others); Fri, 21 Jul 2023 00:27:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjGUE1y (ORCPT ); Fri, 21 Jul 2023 00:27:54 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC9F268E; Thu, 20 Jul 2023 21:27:52 -0700 (PDT) Received: from [192.168.10.12] (unknown [39.45.151.35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id D8E616607027; Fri, 21 Jul 2023 05:27:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689913670; bh=iKsddZcHQfqrHPuhFqHvQKPW73Sg5qlkV+VjcVMfyNQ=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=S+vXr5QcpujtN7Eomq6xVbBtFRYy/Qn36tOKBjeamqj8kw0oHDbD8Pi64s1HgYKIx 5Ql7AOb99tROiFpRW/3Z1wBjIS37oRBRL7/upNkeCkWPQ9SgV+yquhVp+SFZn00pTv Mp1rNsm9RGGWFfwdzpO6+K9uM7DdIJXMxLc0SmiPqBIHQj54g16rm+My/s9TtqAb/E 4s6W1dV+LtuOFtQcQvtyNqsVFbwZSufIpXpRU4+bJCRzijEawwNkykwxHRI5c+fsBn n80+maVPwJVkr9wnKWo3cJhKrtNMackCmcOtxfl4yX3+o+yFirqolzMY6XpnnFYlmD VCeoAc+i3vgCg== Message-ID: Date: Fri, 21 Jul 2023 09:27:34 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cc: Muhammad Usama Anjum , Alex Sierra , Alexander Viro , Andrew Morton , Axel Rasmussen , Christian Brauner , Cyrill Gorcunov , Dan Williams , David Hildenbrand , Greg KH , "Gustavo A . R . Silva" , "Liam R . Howlett" , Matthew Wilcox , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Mike Rapoport , Nadav Amit , Pasha Tatashin , Paul Gofman , Peter Xu , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , Yang Shi , Yun Zhou , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, kernel@collabora.com Subject: Re: fs/proc/task_mmu: Implement IOCTL for efficient page table scanning To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Andrei Vagin , Danylo Mocherniuk References: <20230713101415.108875-6-usama.anjum@collabora.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Thank you Michał. On 7/21/23 12:28 AM, Michał Mirosław wrote: > b. rename match "flags" to 'page categories' everywhere - this makes > it easier to differentiate the ioctl()s categorisation of pages > from struct page flags; > c. change {required + excluded} to {inverted + required}. This was > rejected before, but I'd like to illustrate the difference. > Old interface can be translated to the new by: > categories_inverted = excluded_mask > categories_mask = required_mask | excluded_mask > categories_anyof_mask = anyof_mask > The new way allows filtering by: A & (B | !C) > categories_inverted = C > categories_mask = A > categories_anyof_mask = B | C Andrei and Danylo, Are you okay with these masks? It were you two who had proposed these. -- BR, Muhammad Usama Anjum