Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp383023lqm; Wed, 1 May 2024 03:49:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVuEE5nqhv3NIDrkjecswQNzEEg66ZGoGRmRmyYUPJrV3XK0N/7wjYWxy5cWfNoBKWMMlZcodF9GCemrlKT49MQ2C84Y5kn4ccySTqOIg== X-Google-Smtp-Source: AGHT+IG8TjbbibuaNdu3+3cURcpDTJ64u3kfLmYeKQutk7qa2ndfalAVBtdDOgkm56AT/qsSQrUV X-Received: by 2002:ad4:5ba9:0:b0:6a0:919d:e3e4 with SMTP id 9-20020ad45ba9000000b006a0919de3e4mr1877002qvq.21.1714560585813; Wed, 01 May 2024 03:49:45 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fn13-20020ad45d6d000000b006a0cbe9c5bcsi7004699qvb.519.2024.05.01.03.49.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 03:49:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165156-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; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=LQkSxb1y; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=PVJpGju2; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-165156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com 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 7B6B01C21F55 for ; Wed, 1 May 2024 10:49:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6922056751; Wed, 1 May 2024 10:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="LQkSxb1y"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="PVJpGju2" Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (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 5F6034F881; Wed, 1 May 2024 10:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714560574; cv=fail; b=lHytWHT59kkjLl4rBuyEPa4zOOoYemOdVMZtBsDZU+rZh/0pA0nVopXTSQIK8zpyX2lXaD5TaVArtLwjbvo4aPY1bn3e/bPfmm0QqzYl3BF1wqTVizgq3hwEXidXP8IwD69+7fJok8WvBB3ZrZZvrESaLMnEEnGHMfbeTd+N0do= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714560574; c=relaxed/simple; bh=sBmFsjgXyN5k55da/Hg78X1F1mrPhKT4QRjDeosAjcg=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=unblW/seyOdydJuKW9UUh70TV79UPP4ifTTxq5kikQxLtAYIKfGo5NmF6PXmm4Ljh8WMTNkfjbtE/VpZr9DJT4z74ifJjzmVG9ByqUG+aIGaE+ZbOM7R6lk+0p2OK+NTMcP7ItCD+4EG2KiEs7yySehAHPAiH5Yc4OYa/M6840E= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=LQkSxb1y; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=PVJpGju2; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 441AT1aO007070; Wed, 1 May 2024 10:49:10 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-11-20; bh=FopK+8Z1R7rG8o+mSadT4JybiZiqMogCUbyNSZorCH4=; b=LQkSxb1ydiCg9j/b9ec6VhD9y4Tn1/MHQWt6xWXajvrH+NNek3/jqM1pIZ1628+oYu99 SZN6GLptvTYIOxCZmzEa0+b2tmgWjR316vlMGnvBCOuHHWaTdr0+W/ZBZtP9tjZV//uG NnSGQBMqR6h8uo48NpT4RRKd8hus0AIwTLODEAm4NkX0MA/kiXyzIkzyKJgu87kPoT8U UzFiueDtLRufyjLGgAkz4B9NbYHNf1qrF3NfBoUKDOSyd4jcFGAT8h/vpd8RiY5u8W9P aLp05CEy6qLPit53pqcjPbnNdh70X6bQogncQ9NNfGoI7n0iBVo9JZAZYQYvXC5GktJZ Mg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xrsdepykx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 May 2024 10:49:10 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 441A4IIG016709; Wed, 1 May 2024 10:49:09 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xrqtf6bsy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 May 2024 10:49:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V+6DO5a/DgyGt6KPhADZALOYSG9VsC3WGflvLXa9/vaEbtJBbeYEdrGl0Vc6a2Z+AelflMABNSsVEopqvq6zo9AN83nIySy9QSU8vUCIGl51SxixiIQ40uKk97s0OZasoTxGt8GPt5gPMVg/7b2Og68bnray/wO9OzUFXzHN8Q43Q1Ly/Y6Rz6xPAwccstaCAGcUWfZD+HzUvTa5DVldopqzU28TTX0t1148y09XZ2sbhfYdzK5LPbU7rKEfYIredpXf+nDwbS4Ah84GPJhub182M7ZnoLPpyPKp6kLhg4AmqHdDaqejJXTJSyV85RZijOdQFdxbBuWzJjpJP+Uz7g== 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=FopK+8Z1R7rG8o+mSadT4JybiZiqMogCUbyNSZorCH4=; b=Vnb9D71aVsJotvKvXj4KzGdRvgqt7p9D9pnkoBdyE8DdNujvApmYSYUs6UI+eHZ5BBupw4bwp0qsPr3Yqoe4eckuWXgXJ3Sb/6xf4LCBZI4zW7a6NE6iYz32ROO4DwMurHe0t/zDdnJ7yGap7qy5w7eIKu5wC/e3WGBSlkERCdBMzM8u7ZRzhMVmH4viQy0Er4fcwD/YaMpKI9gCwD7lA2+PxBVO1NCzOvxPfM3FDQyKPCLPPgCnkpw+IrUa/PcTL/YletEU3IsLv98hUbokleQhhzxq3Nh3o1J/OB+hKh7y150RhatljF2YqrnAKebHwdSigRJrPZFg18QisyXLpA== 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=FopK+8Z1R7rG8o+mSadT4JybiZiqMogCUbyNSZorCH4=; b=PVJpGju2PjzevRHENYse+Uqaa0dHIcgW1WA8wXaSTqzZVDMoqa+Wyo+qUAKyJaztf5htOXoz/n3VP1xS2dec7M8hgS7jLIHjVuPF0nIUVl22wYipByUErW5pcyFRwtz9Ou8D7qcMzs2HcYWkrfdobrlhwR+lh+faoHGtLaDerFQ= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by CH3PR10MB6836.namprd10.prod.outlook.com (2603:10b6:610:14f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Wed, 1 May 2024 10:49:07 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088%5]) with mapi id 15.20.7544.023; Wed, 1 May 2024 10:49:06 +0000 Message-ID: <33700d9d-08d3-4fad-8ca4-e6beb3529bcb@oracle.com> Date: Wed, 1 May 2024 11:48:59 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 10/21] xfs: Update xfs_is_falloc_aligned() mask for forcealign To: Dave Chinner Cc: djwong@kernel.org, hch@lst.de, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, chandan.babu@oracle.com, willy@infradead.org, axboe@kernel.dk, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, ojaswin@linux.ibm.com, ritesh.list@gmail.com, mcgrof@kernel.org, p.raghav@samsung.com, linux-xfs@vger.kernel.org, catherine.hoang@oracle.com References: <20240429174746.2132161-1-john.g.garry@oracle.com> <20240429174746.2132161-11-john.g.garry@oracle.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR02CA0073.eurprd02.prod.outlook.com (2603:10a6:208:154::14) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|CH3PR10MB6836:EE_ X-MS-Office365-Filtering-Correlation-Id: 85b2f7c2-6a39-46a0-69b8-08dc69cc52cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|376005|366007|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RWY3Zk40Y3ZoaVA3SXR3eStvdyt1T0tkdVgzTDRVTnkxakVQNktVQ21vKzVH?= =?utf-8?B?RTBwaXlNTVNNemZteks2K09Gc29WUWs3S0wyZmdhdXdxeCtRQS83dGxLcnB2?= =?utf-8?B?R2tQR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-8?B?WElaK0I3cWczS3FEVjBmS2tRdEdmNzloSjNBQmQzbnplSG9pRC94VURxc0g5?= =?utf-8?B?NDhMMG05Z3BkVkJSR3VsR2JWek9Ic0tsQXhhdzF2VlFnVVFoZytGSHA0TWht?= =?utf-8?B?YmNzODJBMVdWamxGRDMvTlhSVmdmWFlyVHlSMFg2UE9zMW9jRVQwZUl0aWJ3?= =?utf-8?B?ZktDT0xOWFppTE54R2t6Zi9TMWZEa3B3WUY3SndNeTZTQUVINzVYcXhpUGlr?= =?utf-8?B?bG9XZm5mN3lmeHBPb1JZUnMzMGJGaVF6aXBNYnFWaEw1SlRIbk5XelVWOU13?= =?utf-8?B?VlhqTTMwOWJBQk5EekJpa1ZBaVBiRVRISkx2aXJtWnlGQzk3d3ZGdXpBMk9j?= =?utf-8?B?Y2pTSk9ndjNZS3JMY1dLbUlhWStFQWtZVDR5V1kwcWNMcnVUOUVQTmVLVmJG?= =?utf-8?B?Y241TjR6amhrSEZDWUhFL0pvYVdBUE41UmtPTnlaTU55YVM1a2hZM252RXpo?= =?utf-8?B?emFyd1ZtVDBsUFZRd1BYWXhpSXVlaEprcjBBMGVPUHNaVS9ucUM1SHBhdUxx?= =?utf-8?B?bytLMVo1R3lXa1N1L21za0pFM3E3WG9uUGdPdlh1d1lXUEZVb3hkOHlhdkVw?= =?utf-8?B?SjUycXM1UHZjODVVNElvWDhKTVFpaHdESFVWUTRXamtOU1Z2TGxTRmErR1lx?= =?utf-8?B?djlLWnB0cjRBa0U1TjdZMUZIQkNlN1REYlhCS0g5OHRYSytMUUVRNGJ3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =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wAFI10GUM5trykirgYTNn0fP1vdyOhfbUaBWKgZWXKL6krx3oNE9mIxLpte9o9dfOWOiD+IZEWlKd2ilEFCD67dramukVatgskzFMWmFEKYPlT6eiX9YOnvvvs= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85b2f7c2-6a39-46a0-69b8-08dc69cc52cd X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2024 10:49:06.5558 (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: HuN5nQU/xiOr2SL1PmtrxIJImljG/cTo2XXhMsnjXl6uXb0shE5xDwVnYFNoFGqUZIW7zyGRXxF9CJ2ndoRCVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB6836 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-01_10,2024-04-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 phishscore=0 spamscore=0 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2405010076 X-Proofpoint-GUID: jZIMQilDrOGMUVTS6TFK0jYrmKe-hTAw X-Proofpoint-ORIG-GUID: jZIMQilDrOGMUVTS6TFK0jYrmKe-hTAw On 01/05/2024 00:35, Dave Chinner wrote: >> return !((pos | len) & mask); > I think this whole function needs to be rewritten so that > non-power-of-2 extent sizes are supported on both devices properly. > > xfs_extlen_t fsbs = 1; > u64 bytes; > u32 mod; > > if (xfs_inode_has_forcealign(ip)) > fsbs = ip->i_extsize; > else if (XFS_IS_REALTIME_INODE(ip)) > fsbs = mp->m_sb.sb_rextsize; > > bytes = XFS_FSB_TO_B(mp, fsbs); > if (is_power_of_2(fsbs)) > return !((pos | len) & (bytes - 1)); > > div_u64_rem(pos, bytes, &mod); > if (mod) > return false; > div_u64_rem(len, bytes, &mod); > return mod == 0; ok, but I still have a doubt about non-power-of-2 forcealign extsize support. Thanks, John