From patchwork Mon Apr 29 17:47:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 13647477 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 4284612A14F; Mon, 29 Apr 2024 17:50:25 +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=1714413027; cv=fail; b=TNWnqIrz5kwiWBsixKrepk6geZbFaUj+cUQkSu+2k2pOg9nHwzUKHMI/Z7b0/l8l6m40GXPBWKOoD7imhwNJ27DcYJ6kd4FLXYcQFDDVPCWZHVr3XhAW5+IuearUS3kx61vz+vHW6lJldJ501I+iVt60qFYAMLcHaGlqnJTMo24= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714413027; c=relaxed/simple; bh=THmpiG7qab8wx2V6pk+Nl/MtKoX5p5zyVhzc/P+/5Tw=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=UkSNPOSJjPnbH3T3ZgBzNYI+7f3MlKxtMZTnpWZHl85oIJp31ym0wt5FV5l6zveReh98CQqxduWYL2ritZnUqA4f4/0Npv0QvYX6IwzPfc6qXwwd6g+AhNYW/6u6QKcN9/vtRuBYPKxZFci6QVOoBb60Bcix7Ukz0BsYweS3tvE= 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=At7cDpvn; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=UJAM1VrY; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="At7cDpvn"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="UJAM1VrY" Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43TGwmR8002385; Mon, 29 Apr 2024 17:49:04 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=WSmPREpIWWjXhzmRIzM6atxu6YFV6KtHYXMwIHpJ0aA=; b=At7cDpvnWl/3KJJDQJ7flv6g/9igxVL/sn+VVfpAkzvEb4M923x1KL0FVn/2AkoXEwRD 98WCSgnyRvxC46gR+iXmSR67o9XFegy2wMrVIsBY+8igsyYJ+DrOCPQVV6WkX9qI35x5 H4POfkKRYyWclobGP83vH9WiuG83om8hOAvSK4FRjCYz4mCBhOBy7wrWYlIANy9Hfldr B2iJU7sGJX6D/dSSt5Zq1hTwqyQqsduDvS7WWGgSv5cVbDBR+L3fWfBS7u2vz6hFInQX UKhwQcEFQbVWkAuaTiH46fND/c/vlZhRjx+bnEt7kXX6LMvTlsQsKwSaylRUKFa5dfo0 xw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xrqseu6qm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2024 17:49:04 +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 43TGRTcr016720; Mon, 29 Apr 2024 17:49:03 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xrqtcpxpb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2024 17:49:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Blff9bH/tAYRxGtRaaBcWE7XmjUdwCx9Bp06BXJFeM+0Wx8rdnV9AhCEi/utvdhBcFIwhrFW6gekBQGsccG/xsQvalpA1ceXwKKiUqJGi4q2Zq9xxuuOlFf+fU21+tPrIqJfINehb3wr68Buh1C5Op5HXnvfU6JTkFoa2pHAXsqRjPToWzQZLDlikuGkyet8RX61WCNyqaM5gPgP+wJGHAw+V0AhgeCPtQAlP0558A2gAgARtKG5t3YUii3pG5S41QaCyGwVeVO+0y1RLWjLIP6wNIZgf+hm20WRpU5tifmQdQxeV144TCIZwItsiiYmJPDCQv73OskCJ1fzsdrsGQ== 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=WSmPREpIWWjXhzmRIzM6atxu6YFV6KtHYXMwIHpJ0aA=; b=n6pvHp9ZGeY8v+RYfo7wq7QRl2IeCTGPX0/HbFhDwXZp5c3pgGfgHx+1t33nHnmI6h/WBpLT1LCM5u1A4ohp58lZJUw2U53cogPtB84CXhxokFFCtkK/dvLv5E4/kZK67ubQGmRppFRSo53ykaqbSGqdnGFFj0ewPiIb++y6QmwHZHrZCgx7p8A2q4PjRiHN8uw1Sr5BmK7zB0GhYpWu+Cr3P0oNkzc9U9PPPYgfYe9PBZQHIpuqq8R5KLSGw/PQ6b3nzgcfm+UV+CUTdGgNI/8opIXrnwW/gwYcuA44nZRNNAH84MytxU12Y+056HnQTt+TJrZcicNOSCFN2q2SVw== 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=WSmPREpIWWjXhzmRIzM6atxu6YFV6KtHYXMwIHpJ0aA=; b=UJAM1VrYPuCHw/jPZnomH2pTNopmMj8gW/XPsdEQg71NV5umuiBbH0Ljzpf9Zp76tXvVoqQnttcXrREuUn55XG6Ud/5dQyY7XMZuKByffA52G/ghUZrHBDFe140u0L8Xxg+ia4vGmlgSi4O1XIOy9eDnSepN4MFAWN2bBHdeeM0= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SA1PR10MB6389.namprd10.prod.outlook.com (2603:10b6:806:255::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Mon, 29 Apr 2024 17:48:03 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088%4]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 17:48:03 +0000 From: John Garry To: david@fromorbit.com, djwong@kernel.org, hch@lst.de, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, chandan.babu@oracle.com, willy@infradead.org Cc: 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, John Garry Subject: [PATCH v3 00/21] block atomic writes for XFS Date: Mon, 29 Apr 2024 17:47:25 +0000 Message-Id: <20240429174746.2132161-1-john.g.garry@oracle.com> X-Mailer: git-send-email 2.31.1 X-ClientProxiedBy: SJ0PR13CA0012.namprd13.prod.outlook.com (2603:10b6:a03:2c0::17) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SA1PR10MB6389:EE_ X-MS-Office365-Filtering-Correlation-Id: 71eb46c8-ff33-4959-3005-08dc687484aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: GPqD1HZYmXfjkSAlba+64rGizeoDezYOWYvkoiV1kiqD3zlNC7fqI8aEjaj6RkEDh+/fHHIYihD3u8dlX9wC4hRT5USfulFYa10rW51SUelF+KbnyZkH1KVMmnFBV6m2z5wAh6Ph7xMzRj+2EB/Qya0Qxm8wXgz5LOSWbsYdA6FFszq6qWJ1KG1jxZiwVEPEOypNSmx6XOtMxEBmU6fXOrWahASwwBa4SzSKpOjN9E25HFiEXF/teF2YLjIyZ561nDdgSXdU5bMJEtKD/GZ/56K2Qu7LNaOBF7y8mqJl7mU2lO/NOs+pljGCC61t+U2N8DojDp0kOmg59bEOuX4tscDTGZYFd/inaDc1mXf9EzWBylRiNG7o/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eaEtN/vxYHs7KpsldCRgITw57Vn+jr8XTYboMv04WhvYFigPbXeNAEmwO/aD489LhJ43UvMF2j6lGmG+oJstBo4p2ki07li1hTaseCyE+Dq56UcMRt0mIiLUV7+1awRWgQ0EbwvzfnvLTmt8JOg/bpB/PEaN7VZ3B6QtkvPR1VmE6ftbVzvzuw40Lg4L0Ahb/vpH8z7Aog+jpdM+viqq4+kTE9YvSUw3LYHPWDZbQqq0HesTOtrw8CFHOt2/FW0OzwTZY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71eb46c8-ff33-4959-3005-08dc687484aa X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2024 17:48:03.1977 (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: zXq0VXVQM22Cor5Rbjmv1TQUaSx5E0CEuJqonERLrVikaNJFTSvPlDr7Or61Evcrl752YOOiWavU5KHI805xTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6389 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-04-29_15,2024-04-29_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-2404290115 X-Proofpoint-ORIG-GUID: WX_HnO0UtyHgVlVj_Amcr4eK7hfM_A0A X-Proofpoint-GUID: WX_HnO0UtyHgVlVj_Amcr4eK7hfM_A0A This series expands atomic write support to filesystems, specifically XFS. Extent alignment is based on new feature forcealign. Flag FS_XFLAG_ATOMICWRITES is added as an enabling flag for atomic writes. XFS can be formatted for atomic writes as follows: mkfs.xfs -i forcealign=1 -d extsize=16384 -d atomic-writes=1 /dev/sda atomic-writes=1 just enables atomic writes in the SB, but does not auto- enable atomic writes for each file. Support can be enabled through xfs_io command: $xfs_io -c "lsattr -v" filename [extsize, force-align] $xfs_io -c "extsize" filename [16384] filename $xfs_io -c "chattr +W" filename $xfs_io -c "lsattr -v" filename [extsize, force-align, atomic-writes] filename $xfs_io -c statx filename ... stat.stx_atomic_write_unit_min = 4096 stat.stx_atomic_write_unit_max = 16384 stat.stx_atomic_write_segments_max = 1 ... A couple of patches are marked as RFC, as I am anything but 100% confident in them. Indeed, from testing, there is an issue that I get ENOSPC at what appears to be a moderate FS usage, like ~60%, and spaceman is reporting appropriately-sized free extents. I notice that when I disable any fallocate punch calls in my testing, then this issue goes away. More details available upon request. Stripe alignment testing for forcealign changes should be noted at https://lore.kernel.org/linux-xfs/083f3d88-cd39-41ef-9ee1-cafe04a96cf9@oracle.com/ Baseline is following series (which is based on v6.9-rc1): https://lore.kernel.org/linux-block/20240326133813.3224593-1-john.g.garry@oracle.com/ Basic xfsprogs support at: https://github.com/johnpgarry/xfsprogs-dev/tree/forcealign_and_atomicwrites_for_v3_xfs_block_atomic_writes Patches for this series can be found at: https://github.com/johnpgarry/linux/commits/atomic-writes-v6.9-v6-fs-v3/ Changes since v2: https://lore.kernel.org/linux-xfs/20240304130428.13026-1-john.g.garry@oracle.com/ - Incorporate forcealign patches from https://lore.kernel.org/linux-xfs/20240402233006.1210262-1-david@fromorbit.com/ - Put bdev awu min and max in buftarg - Extra forcealign patches to deal with truncate and fallocate punch, insert, collapse - Add generic_atomic_write_valid_size() - Change iomap.extent_shift -> .extent_size Changes since v1: https://lore.kernel.org/linux-xfs/20240124142645.9334-1-john.g.garry@oracle.com/ - Add blk_validate_atomic_write_op_size() (Darrick suggested idea) - Swap forcealign for rtvol support (Dave requested forcealign) - Sub-extent DIO zeroing (Dave wanted rid of XFS_BMAPI_ZERO usage) - Improve coding for XFS statx support (Darrick, Ojaswin) - Improve conditions for setting FMODE_CAN_ATOMIC_WRITE (Darrick) - Improve commit message for FS_XFLAG_ATOMICWRITES flag (Darrick) - Validate atomic writes in xfs_file_dio_write() - Drop IOMAP_ATOMIC 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 fs: xfs: align args->minlen for forced allocation alignment John Garry (13): fs: Add generic_atomic_write_valid_size() xfs: Do not free EOF blocks for forcealign xfs: Update xfs_is_falloc_aligned() mask for forcealign xfs: Unmap blocks according to forcealign xfs: Only free full extents for forcealign iomap: Sub-extent zeroing fs: xfs: iomap: Sub-extent zeroing fs: Add FS_XFLAG_ATOMICWRITES flag iomap: Atomic write support xfs: Support FS_XFLAG_ATOMICWRITES for forcealign xfs: Support atomic write for statx xfs: Validate atomic writes xfs: Support setting FMODE_CAN_ATOMIC_WRITE fs/iomap/direct-io.c | 27 ++- fs/xfs/libxfs/xfs_alloc.c | 33 ++-- fs/xfs/libxfs/xfs_alloc.h | 3 +- fs/xfs/libxfs/xfs_bmap.c | 302 ++++++++++++++++++---------------- fs/xfs/libxfs/xfs_format.h | 16 +- fs/xfs/libxfs/xfs_ialloc.c | 12 +- fs/xfs/libxfs/xfs_inode_buf.c | 86 ++++++++++ fs/xfs/libxfs/xfs_inode_buf.h | 3 + fs/xfs/libxfs/xfs_sb.c | 4 + fs/xfs/xfs_bmap_util.c | 14 +- fs/xfs/xfs_buf.c | 15 +- fs/xfs/xfs_buf.h | 4 +- fs/xfs/xfs_file.c | 64 +++++-- fs/xfs/xfs_inode.c | 14 ++ fs/xfs/xfs_inode.h | 15 ++ fs/xfs/xfs_ioctl.c | 55 ++++++- fs/xfs/xfs_iomap.c | 13 +- fs/xfs/xfs_iops.c | 28 ++++ fs/xfs/xfs_mount.h | 4 + fs/xfs/xfs_super.c | 8 + fs/xfs/xfs_trace.h | 8 +- include/linux/fs.h | 12 ++ include/linux/iomap.h | 1 + include/uapi/linux/fs.h | 3 + 24 files changed, 549 insertions(+), 195 deletions(-)