Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3161602rwr; Fri, 21 Apr 2023 23:20:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTmL6V7zcbCLsASxmen9cHLMZlpcTkpmx1q2To6mLVuyNXb+n8bne1ANEGMyBRapFSYYGo X-Received: by 2002:a05:6a20:12c8:b0:f2:c9c:6e8b with SMTP id v8-20020a056a2012c800b000f20c9c6e8bmr8780582pzg.3.1682144426710; Fri, 21 Apr 2023 23:20:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682144426; cv=pass; d=google.com; s=arc-20160816; b=KGAIevUOjhef0/LgTKShkcAMdH7ilyXprrd5vTsBwvXMXls2S3XTA5fO/4Vdfb3ABC Btx3UccEuZyAmRWTuKxTkxo086yoXQikvmu4BI8ylkFTED/Eq44hDHO5UJXq//90MWMB ddLG8EiZBBmpK4o8Y+xVv3pjqoTwpgIcWuxEItnakDoV2FXl3C6HTADFUlRPHSPbxu/G dtVR4bYH9Y+3OaEyxCQ8+D45XLoB3LRkapGKcfQfUU0tQQyzi62/nPGnWmy7qXdqwRXg Yvl6d6LUSJtDNtMyBxN7xQ8Oi0Obeu43B8rBo9fcjBPRlsboGq+N7P09/xX9GN19Jkd9 c4FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=b4tEBammvyrvb+GUjcnY6vblvRFhOx1gAT6uu/MtK6I=; b=yBNi9uAUSh2qjzWO/agDxUT1jwAoGqJCn1TlyfK0v7wKAM11ZZlPZ9NSwTQWrWtCUG dysrovDsJkDZkVSX4muQzB0pk2I8G3T9WglubWjj/V7670ZwntPKwqiIlU1kqNrA6+mm cIooRMTc/O6BZT3NQrvYX8gEztqwNczHS3C4eQEBjFvEC4K5ngQUJ1f22MlXq3/jCw0a 0qEib3ZW92WRTYZ99kJK842MoYIwyJgwuVzYxpiO8iASN9x0fDLLw07VoVQ/0iUaucFC +Klk7Dhb4X2igrxyiLECKLooD0MOClLhhsnglj332ZRu7dQSdLhqoouZIvwwPiR+kEeq eEmw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=fj0EvHk1; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BuLLkUwv; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020aa79d8b000000b0063c56f195b5si6068275pfq.122.2023.04.21.23.20.05; Fri, 21 Apr 2023 23:20:26 -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=@oracle.com header.s=corp-2023-03-30 header.b=fj0EvHk1; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BuLLkUwv; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbjDVFL0 (ORCPT + 99 others); Sat, 22 Apr 2023 01:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjDVFLY (ORCPT ); Sat, 22 Apr 2023 01:11:24 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3A01BEF; Fri, 21 Apr 2023 22:11:23 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33M3wUBn012003; Sat, 22 Apr 2023 05:10:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=b4tEBammvyrvb+GUjcnY6vblvRFhOx1gAT6uu/MtK6I=; b=fj0EvHk1wWCPsOavx4rsbW/murL/tGecGS+2t56epinK2HZcT0FnYJZWnnVj9Dck7zBn nfeGhOYTyyf2GCqm3xxtYOcxfVdOzoqjd+JpJKgC48JZJAvyyM3+1xC8MfNzlR79Bqvt VEWvjEZVyszr0C87f0Ah0uNkbUePeOt+TQCnRaJ0csMokjKrTu/A2EV6KzTM8G3DiD+3 TCCNbZGQuPfskJ1me9qTTtNGx4JrysWGTPHx8omNRTkmyYnPttuDij4eVtG70s6Hgu6Y Byu4fpsiPL+RdRbqr56sCBNI7J99q9JOkL767x5F/3kc27qgqINfcc3PB4mR0TotX9wY 2A== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q484ug15j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 Apr 2023 05:10:50 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 33M1X0ib012755; Sat, 22 Apr 2023 05:10:48 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2049.outbound.protection.outlook.com [104.47.56.49]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3q4612v9ds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 Apr 2023 05:10:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AJHUIuExt7m4t+hdzELKQiAt3hQ8OMV4GQlT8PbkEm1lf4j5m5HK0f02B66kXxVN680tytv8GbsVE6VgypHQuPAShuVCsrq8Iyv5URVe22VbuqnqUx+HoqtWM9Xc/ICLuVSsAKphmu7sNNAs22D3JnKjymy1uFYmA6kLvKZG+w8NXfNQ7ybmPJ/WQbeZP/ty84zfYuL8gfdfAkUWfWiarsHKIczK9GKhBMegyhomjEA3e/tUSG4N2eHSjSaJ8ge6O9YWjMNG19GIHk2HahlgTyS1LmcI6dAGA1N5OghfoKcrAI4t3dux5yYSHMMbGw+7DaYcsYQFNOp0+w0RmS/x7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b4tEBammvyrvb+GUjcnY6vblvRFhOx1gAT6uu/MtK6I=; b=Z5a4pTMQqLe6hcGYmjwuTF0UWtIGvLKqL3Srjcge5lIpU9fJpNQZp4JTo0HMk37+a84C3ptQz811KGfpG+KkpqZqlc0NvyUsHXAfA8MYcnTBV0if9lXqoEwlqSIecs2/HNJQa6gGgZ2tt0bnBblwxlJFTOOlLsCwJYh7LgM6qEvBJGnLd3yVedPfBuyQUPkMikNnmSYgsyeO19HP4ujPprwQS9Np8l2bnTZ5djf4rMEF13DWsWZpZk97Sg0dIxWHFL5yOveOhp0vTf0g4d2mJpJngzbIAyTPLxfvi4ATD0plUmIVkBiFUH+2Uyr4njF4ksIULmsj/r/z/ODHCgEoiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b4tEBammvyrvb+GUjcnY6vblvRFhOx1gAT6uu/MtK6I=; b=BuLLkUwvDLanN6yGEmt7yikPXhOtbpAA6hi7qnfVxLgMmQmpz/YijlpM6YKhgJrt1H23nYggwDDGHbi+x/yxENdx5evwyNHZDO/j4aTdvtO9nkW2EuVtzJTj76+j2AgWPxQpsrRZn3vLOhz5OYYULKwy4GE07+DEPkxwyPbDHxY= Received: from SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) by MW6PR10MB7637.namprd10.prod.outlook.com (2603:10b6:303:246::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Sat, 22 Apr 2023 05:10:46 +0000 Received: from SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::256d:125b:8053:eeb9]) by SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::256d:125b:8053:eeb9%5]) with mapi id 15.20.6319.022; Sat, 22 Apr 2023 05:10:46 +0000 Message-ID: <42169da4-f453-af92-1c1e-76e65346c4af@oracle.com> Date: Fri, 21 Apr 2023 22:10:39 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [RFC 8/8] shmem: add support to customize block size on multiple PAGE_SIZE To: Luis Chamberlain , hughd@google.com, akpm@linux-foundation.org, willy@infradead.org, brauner@kernel.org, djwong@kernel.org Cc: p.raghav@samsung.com, da.gomez@samsung.com, a.manzanares@samsung.com, dave@stgolabs.net, yosryahmed@google.com, keescook@chromium.org, hare@suse.de, kbusch@kernel.org, patches@lists.linux.dev, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230421214400.2836131-1-mcgrof@kernel.org> <20230421214400.2836131-9-mcgrof@kernel.org> Content-Language: en-US From: Jane Chu In-Reply-To: <20230421214400.2836131-9-mcgrof@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA0PR11CA0018.namprd11.prod.outlook.com (2603:10b6:806:d3::23) To SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR10MB4429:EE_|MW6PR10MB7637:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c6d2f95-bb76-4bce-aabc-08db42efede0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mz7pfNjPUdyt4/jQnJtsXBT52YSFR8zfpGQs1gMsZhuMct0rujgCkWT7o4+Bt2X8n5Z+VS+WpUq+TSLTA5zHhlBl6Y92AE0dK+bPh+YwBjcpEw7h5f+tw77Jer7xCB6IzI/SQW3KTb9vYNr3cn7u4AVV7P1XXZXYWRodyrbfk9ugOI9GMipNV/imYbkrKOIujLWZFcb1XxPTc4NrieidvWyqT7hJdGapm61FrLOV4qQ9agVu2IX6g+96/EuboKnp4miCpjdOtDUWVVG+LvtCbLbV6dH6wMMOYoXYwTcMgPNGe6uX9Z/mqBhi5hWogtSMdDO2qhbUs2UM6tp1daSjlE7dsDp75SQXsFLVVz4zpWp3hRFhTMk1z/X03VJ6SyNd3KCaPlQp/yioVudtos+bcqlGJNYAx2Y8JN8R8Hcda7aLilReCd2yFRa+HufAzC3d7s94/kyMgzXwz+JqBRKkB0wzAp4mOAubodP4v6idynC+/rHGtOFSS0ApBPQaFeiZ7yCZBpba3H6rHEhG2ZoMX2PZGzGmhIL9ut3mwbQc1eBz9z94pCNtu6gMwMJv40XhArWUtZMHJQwODQnYFtG2T1OW4sc2sHJqbZns+WK20rmqAV9O14Bysg+ajhjvlGBs5dHbKAcY5GWcdR0c81LOgQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4429.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(396003)(136003)(346002)(39860400002)(376002)(451199021)(31686004)(4326008)(316002)(66946007)(66476007)(66556008)(36756003)(6506007)(53546011)(26005)(83380400001)(6512007)(38100700002)(2616005)(186003)(8676002)(41300700001)(5660300002)(6486002)(478600001)(2906002)(6666004)(8936002)(31696002)(86362001)(7416002)(4744005)(44832011)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dHpTU25MZkpaeXRVRVVaM3gvdzdTK1hUejdZSEdwd0VEZGxFVXlscHNKVVl3?= =?utf-8?B?bEdvT2l1aVgxclR6K0haVDlhbHBreGNQb2t0ZHJySDA2SnlkTUoyRFVLNnhw?= =?utf-8?B?VVovUk5QcmJwd2JtNnkyVVJBV2lQR0FoaDNEN1RVUmlrM1dqWTNxK1hjL3Rt?= =?utf-8?B?Wk9zNzE2Y1FEYjZqNEE1cklCWmtrWllndHhSS3h0Q1RlaFpQa244dDBpZUN0?= =?utf-8?B?bzdseUhiNGYwU25xZ0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bHdLQmQ0RVJWT3NUd3BNSTlJT0JwdTZnZ0xsNlAvc0FRUS84UlVY?= =?utf-8?B?VGNCTDd5dWIzTi9CNk50S0JrT2JQVnF4UithV3Bja0pTdG84NmcyVy82VXpk?= =?utf-8?B?RTc5dWF2WlEyRXk1bGZ0MlJucXNoUkpGSG5hYnBYVlgxRXJaRFJHbyswd0Mw?= =?utf-8?B?R3ZVdDlVMDJLZzNwZ2orV1BKWWhBUmloWVV4UC9nRTNIRG9PL3FSckRieGRl?= =?utf-8?B?L09NZmQxZUZianhkdlVJdzZwL01EaGprbnJhWlJyTkdnRm9pNlZwcGNnbkxl?= =?utf-8?B?THZGNFJkWmRMUnV0Q01mcjd4SDhmZVlTSXpPMUZuaVoyOE9lMXZ4Q2x1QmlQ?= =?utf-8?B?Q1RVODg1M0tZaUdBek5PM2JHYW8zMnZMcy9wRnRPV3VBSlJFYU1WVlVJazlW?= =?utf-8?B?RHlxZUp2bkJUQklKT3h2c1p6d2MyMWczbU5tUnlLZy9scVBoTjRlTFlMNzhH?= =?utf-8?B?YTFUc3NlaS9GY25CV0k0cDNjT3hQOCsvTTlDcEpJTE5GU3gyaU10bmVQQTh6?= =?utf-8?B?Y2wxL0RsdzJSY2N6aGVzVmFXS2ZDOFFLaUd4SHRYdzQrWkxrODFadEhwMlVZ?= =?utf-8?B?cURTL3lHam1wRlF0dXdna2hiQUIzZzZLRGliNVRUREQzSWswME1iVTF1ZGVL?= =?utf-8?B?eHJheUZWNmMvVmUzK3N0eW9qcUcvQThEOUtEbGdhcEZtVFlPUnArVmdMVlBY?= =?utf-8?B?T09GMDVtQm1rdkxPbHcrQldocVJjLzgrRXBqMXZoV3FLV01tNnNqbGJHVmJZ?= =?utf-8?Q?Ms4A+w=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c6d2f95-bb76-4bce-aabc-08db42efede0 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4429.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2023 05:10:46.2036 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cGFAN9B0sFug22nM0jrluIsDWt7EHn1oEIhpsqxhEbEM0guV5iFFOBRfb6ftMmLGHRvSjuU9njA/IxW+dRWn1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR10MB7637 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-21_08,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 phishscore=0 adultscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304220047 X-Proofpoint-GUID: -x80ccYHPoUcbGfWi4wD9EFTi2aI1x1j X-Proofpoint-ORIG-GUID: -x80ccYHPoUcbGfWi4wD9EFTi2aI1x1j X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 4/21/2023 2:44 PM, Luis Chamberlain wrote: [..] > + /* > + * We cap this to allow a block to be at least allowed to > + * be allocated using the buddy allocator. That's MAX_ORDER > + * pages. So 4 MiB on x86_64. 8 MiB? since MAX_ORDER is 11. > + */ > + if (ctx->blocksize > (1 << (MAX_ORDER + PAGE_SHIFT))) > + goto bad_value; > + > + /* The blocksize must be a multiple of the page size so must be aligned */ > + if (!PAGE_ALIGNED(ctx->blocksize)) > + goto bad_value; > + break; > } > return 0; -jane