From patchwork Thu Aug 1 16:30:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 13750722 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 6BE9742A8B; Thu, 1 Aug 2024 16:31:55 +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=1722529917; cv=fail; b=SpZ5/hKI10eE4WBd4+kauyc/gswkSvsOtftRmWHxvm8wwys8TCe/C5To2BdF3Kj0ZBxkKoh/reXBA1TFywqtA6ZoBBfD+fmFnpQFXi/J5vUdGo1DDyjUNqOd52qE7ZDfy+0lZ3jgDs5tpSccEQ4eaFvlkrIHL5vbswPbV9bebZo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722529917; c=relaxed/simple; bh=yKEQm1TO2chJY1l2/PQu8F3KBsrE02Hwu9YyZC5uRAs=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=eE8nM7aZomKyOpWPm/ewPBEmkOVoR+sKv5I9BrJHc8sHCIv9ysb5oLQB8SBp1NLzMxHPm4453sVcmzD8bbArCNPuE+f0oqVvgx3isaufwkCOIO1DT8sjiO+uUQ4AK52SiiebwlsZFbj0xKqQhv+cTjvcMB0moK1PiOnoOMz+jME= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject 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=aDvXXiPA; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=Bp/XPER3; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="aDvXXiPA"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="Bp/XPER3" Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 471FtlaY024181; Thu, 1 Aug 2024 16:31:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:content-transfer-encoding :content-type:mime-version; s=corp-2023-11-20; bh=pJDiGgI+yKZ5z9 Y78a6IDtsLetOkGVxhTAgamiZ7xVo=; b=aDvXXiPAe8AZTk8ktHPFb0ek2zKcFe cyzlPV2UKfO5Aq/XgMYnDaqLJaAmLxP8FFvA7HO2mZKlQgANMC05PtTnaxztDduZ hxFqkEKw/1+PDj6N+EhuHWalluJ08DXOs9Gs6MaZncmLN7WTaBhrO0QY1LKKQzh0 SA5881Y2btCQjD2xlFU4Dlux4RuUUtaESUgQ87kAJ8AT27rBduD0karcIr24ul5Z cta+AgSTqtz4GNG4HwovqKbHHSkBVj8UjyN63l+3CspTU1r6oxsOCs5p/yOsSKbW Odw5i+AlxhekYujb/6Q0Wy6gC6kacuVG6DsOOJplY+1wI5suOM+Mx3ag== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40mrgsa65u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Aug 2024 16:31:39 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 471G4CBo029016; Thu, 1 Aug 2024 16:31:38 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40qmpt8g7u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Aug 2024 16:31:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MpqINnmqZZfP/E/5iZ4VdJVtAJkLZdXhMclW2Q+98r5baQCwSpwZx9tK/S/TeK4ZFbgVEyEKuo6Sz3xMB9ninvHXYmQURTTpAo0ZTLGdVhziDvMKo28WEY5MC62tbn4LD6Psx4h2s658xmKyg5UQyoL78BiWHdooWPHB4GnOALIw8AHbKNPB6I6bNz7QbULaeBtyXWOrBN7CHmy1zpw2jLmER/gBJrqR5UHGDmEnXh7EtduMvHNgwj15heUkDOvL9dLFlSpiSnRpu9rP0AiwnSRHxJbJoUc0tRfdKM90EnXsYOXingbYz8RvMMMriLavHXvxrcNhZdjcLUGOWDXw4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=pJDiGgI+yKZ5z9Y78a6IDtsLetOkGVxhTAgamiZ7xVo=; b=Nga3i/6Xo5bluAHBQrTlDR4mzFwIRpqD2ilJJ9vApfBxres1spIoER9bYlLsVx66wW+WygrzOp2JprUvucJww7v1wYnOWGali3B8Q9Cb1m4NeBeUCfg0lSQ+VHE5lm+GS39b4YVspDKpqT7YWN4SfEv1h6XVBdeh+M6bqB/JDrtgGsCHYJ9lzesqEPn6ug4lRvKGfLLOEKr4VPEq4k90i5kxmExqAbJ7D0iDYIflDfhCH7aBYLGfFTr/X6MwOaG2Kb69Wo2iJ5RhMnmxzhT4s+RBYs3qqF+wIL7yqNkN4VZtCpwEUeI+UtY+bMm8PoZ8Drm64IIaPv7Zr75q2tMOhg== 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=pJDiGgI+yKZ5z9Y78a6IDtsLetOkGVxhTAgamiZ7xVo=; b=Bp/XPER3O5/GgoaGgGxv+lhQnP3MWF/jj1uc8dxY35HnVWdWzygQ38FTymbblv587gUy3/hUXnJkwn56msZU8+lE+VQzop15R9/LPmigpw4sXWA8dh3epX6kHYZZHNhvD4/JJ6iXPiV73JVhiKkpBzfOCwOuJPjmy4yKRieDlDw= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by PH7PR10MB6081.namprd10.prod.outlook.com (2603:10b6:510:1fb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22; Thu, 1 Aug 2024 16:31:35 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088%7]) with mapi id 15.20.7828.021; Thu, 1 Aug 2024 16:31:35 +0000 From: John Garry To: chandan.babu@oracle.com, djwong@kernel.org, dchinner@redhat.com, hch@lst.de Cc: viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, catherine.hoang@oracle.com, martin.petersen@oracle.com, John Garry Subject: [PATCH v3 00/14] forcealign for xfs Date: Thu, 1 Aug 2024 16:30:43 +0000 Message-Id: <20240801163057.3981192-1-john.g.garry@oracle.com> X-Mailer: git-send-email 2.31.1 X-ClientProxiedBy: BLAPR03CA0180.namprd03.prod.outlook.com (2603:10b6:208:32f::10) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|PH7PR10MB6081:EE_ X-MS-Office365-Filtering-Correlation-Id: d75fe35d-05e3-4798-ec4b-08dcb24768ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: ciB+zP4045cl/VsNDuCIrR0c6NcP5TXXgg6Pa1VI2WGlg+9WG9xyFvvbaddt1GXixgmvlmILDXXwa8v0SNqMLBrasBcheAiU7NZhgWhsqDHeyqgVP86mBMB2q2NtBkaCN4BGldlBnpGPj9WMIO3DwT4TB+OckuG+jKTP5wD96aUwnppvYFb57rB/uPoHN0RgeeUaYutI2AYWY1Q+ootSpxY/Yztr3QCn4+Fq1f3nyYSUMrKGP+xuye2QDAvgBYRvahXjzqRdLeuYQWZjAoXlNHByYqbKSH8T75TV1khX34v2EoaeBk91CQkUGN6SNPAZ5E1c8ejTgiS0wZ7XoCq/RorC/LD4hA34C7pu5J4VBh/ETTe4+qyP1fmYlOoCWcwiTbfJR+D596s/Z02u02VpUrIK1mIY7LZdNoI0hbF8V1iMTSbAjf7aW+Yo1aMisJgmLjXqMyYJZ/c0X8WpHTtvu1PTsmLGECl+CpgL8CcF4AuPUvtOVdA+nKy9buVqDQ5kMFUMwwAShcPEVG7FlcSQD05igQuYZkwWwqC8zPW1wRB+yOZqxPA84fdPA0G8kr7Fr8qEeVNz5Mlk3zuHlX0h8BvoO1KsP7Ainu5/0/IXJSbwqbtRlibuWPre9PAQeAk71HJyFtJJWibj+utb5WqBEmwkppRglhHDpTkwVD0IANooHZBqk4r5wzOOjBdlO645AFNgkmQgGh4w65TSJ2oV8RjHTXNnSWOp+MsH2vI0zlE9datqz5LMl+rP1x4oguida6VZOxskqkeFOonXF+THMJycqTlnviYnDiFf5OIwuxzs8FeJJAGmqL9DaoWZJjxO2J7aOzVF7Cdcm4wqPIpOnr024wVeditgXDDC4wQTCYDqZZyHlz7a7uKIspho9N8MN2FHNE9gTePOvfpBovFVGeEd1awEYvQhFoN3NdyzXMQq0Cl5jnod1w7tPKb65NhalW1+I6yd3GMTT3yYGBS+ZVqLQnGIXbjTaxJMYEeDsPdKJ3Mb4SveVXCm+Mjzf+pHiumyV1hHEPdNIO4l8hV2MXf0oWXjyWIWcSp4omKjShPojQzQXr41w2oShIV8b14CYVblkzDGlRN6mXwCGOVy7DRqs2Hu7LwEpjD0yibM5EuE0xrBIp1d1uHVz9jbUQ8dlYJ2W3RqeV6kLTU/R/QJVCmDsNGphDRTSmEylokuUuyPWXFr8njkuVhBBL9AltGhWtToaNTjFbKbina+7NJqAV2SHeG9B4Z9gyEPWSAXgRj2jiC05lPKdMqMspIbJcrCMoxSBGZBukDPak8b3MIe5l5vBH8F4HIj3bvNpf6SaIiTNjEQo4vn9HIZW4hDbMs9 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:(13230040)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS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Yl3irKYVSIMIBcxsWDS37OI9kbJXXRMnSRWyA9OF/muN2VHTu/tkd+sqKXptslrGKijxZ9Fn1NBmpo7ru4QnfzvPBgkmVXdN2Q051krfIuFMj3h38x/MVyHYtHcHZJObxTZ7Yt8zeE9NmxmbkYm3Vqcl15WbD7sl+eg08EFBA96JuCsFZQCZwM5LNcu9Qdbv0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d75fe35d-05e3-4798-ec4b-08dcb24768ce X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 16:31:35.1861 (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: T1NvNNA7R//DQV7wHweRG20zdmvHOIMX26XR8IjERYGl4yRAjg627mJyS2gZknmk9An4PApPtGilsFd2+p8I5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6081 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-01_15,2024-08-01_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408010108 X-Proofpoint-GUID: PilNY6umF_3KeD20OwIWinq4qji0qCBy X-Proofpoint-ORIG-GUID: PilNY6umF_3KeD20OwIWinq4qji0qCBy This series is being spun off the block atomic writes for xfs series at [0]. That series got too big. The actual forcealign patches are roughly the same in this series. Why forcealign? In some scenarios to may be required to guarantee extent alignment and granularity. For example, for atomic writes, the maximum atomic write unit size would be limited at the extent alignment and granularity, guaranteeing that an atomic write would not span data present in multiple extents. forcealign may be useful as a performance tuning optimization in other scenarios. I decided not to support forcealign for RT devices here. Initially I thought that it would be quite simple of implement. However, I recently discovered through much testing and subsequent debug that this was not true, so I decided to defer support to later. Early development xfsprogs support is at: https://github.com/johnpgarry/xfsprogs-dev/commits/atomic-writes/ Differences to v2: - Add rounding to alloc unit helpers - Update xfs_setattr_size() - Disallow mount for forcealign and reflink - Remove forcealign and RT/reflink inode checks - Relocate setting of XFS_ALLOC_FORCEALIGN Differences to v1: - Add Darricks RB tags (thanks) - Disallow mount for forcealign and RT - Disallow cp --reflink from forcealign inode - Comments improvements (Darrick) - Coding style improvements (Darrick) - Fix xfs_inode_alloc_unitsize() (Darrick) Baseline: v6.11-rc1 [0] https://lore.kernel.org/linux-xfs/20240607143919.2622319-1-john.g.garry@oracle.com/ [1] https://lore.kernel.org/linux-block/20240620125359.2684798-1-john.g.garry@oracle.com/ Darrick J. Wong (2): xfs: Introduce FORCEALIGN inode flag xfs: Enable file data forcealign feature Dave Chinner (6): xfs: only allow minlen allocations when near ENOSPC xfs: always tail align maxlen allocations xfs: simplify extent allocation alignment xfs: make EOF allocation simpler xfs: introduce forced allocation alignment xfs: align args->minlen for forced allocation alignment John Garry (6): xfs: Update xfs_inode_alloc_unitsize() for forcealign xfs: Update xfs_setattr_size() for forcealign xfs: Do not free EOF blocks for forcealign xfs: Only free full extents for forcealign xfs: Unmap blocks according to forcealign xfs: Don't revert allocated offset for forcealign fs/xfs/libxfs/xfs_alloc.c | 33 ++-- fs/xfs/libxfs/xfs_alloc.h | 3 +- fs/xfs/libxfs/xfs_bmap.c | 322 ++++++++++++++++++--------------- fs/xfs/libxfs/xfs_format.h | 9 +- fs/xfs/libxfs/xfs_ialloc.c | 12 +- fs/xfs/libxfs/xfs_inode_buf.c | 46 +++++ fs/xfs/libxfs/xfs_inode_buf.h | 3 + fs/xfs/libxfs/xfs_inode_util.c | 14 ++ fs/xfs/libxfs/xfs_sb.c | 2 + fs/xfs/xfs_bmap_util.c | 14 +- fs/xfs/xfs_inode.c | 61 ++++++- fs/xfs/xfs_inode.h | 18 ++ fs/xfs/xfs_ioctl.c | 46 ++++- fs/xfs/xfs_iops.c | 4 +- fs/xfs/xfs_mount.h | 2 + fs/xfs/xfs_reflink.c | 5 +- fs/xfs/xfs_super.c | 18 ++ fs/xfs/xfs_trace.h | 8 +- include/uapi/linux/fs.h | 2 + 19 files changed, 431 insertions(+), 191 deletions(-)