Message ID | 20250102140411.14617-4-john.g.garry@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.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 591231B4140; Thu, 2 Jan 2025 14:04:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735826699; cv=fail; b=VI23ojv8tK4D6A149ZBJCvVHenF0XT0VEf1sF/u2CG7NOtaRqB5DUrL3AiMLiE2exPAAA8HRUkRxLB3MK+UiCYbbgZD98PXyCF1+1ocofdK9cWTbSFHMNIgE0Hv2hU3lD81U6t4TiFNVTC0xL9UqYjiAPOeXTVJa1LS5gBTDAy0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735826699; c=relaxed/simple; bh=kWgiwjQoCWVCg4ulv6EuuV+2onieZIrHz2ifgwcsd9c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ajT0hfiS/vX96PYtTdK1X89RVTsAHMRHyoiHv3S62MmPsQ0+fZtEQLBzuR8TVA3Ie+Isp+JILw6jWwbPJ6GsULB4wESUY9FUcn6noimbB9jihUf43L6zIli9e0SL2zh0snQswSC+YJQ6VDVdk2tQVRQ+0am2dkgBkMJqa9iOBe4= 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=hxpghGNX; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=mRjnV7x5; arc=fail smtp.client-ip=205.220.165.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="hxpghGNX"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="mRjnV7x5" Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 502DtrfU018980; Thu, 2 Jan 2025 14:04:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=Pi6nNeWKVWfsgMMYNfG6r2SBEVk0r2mrnQLm9/GjiPI=; b= hxpghGNX+BrMVby9r6dukWnnYR6ZWTWsmtFpT4J/SBWkBCwA9bxCR/tUA8x95xI6 Hp3C/scNTEorBgR4AHdSDvBjLX1vr0v8wuU8R9/brm9e0LW+z2G7RhjKNpoB4hSG RO9lOIfzWXOLRbdqKjPFQE5UCqLJbaaK2/lXir6X/QwCzPVMyjWHoukgZBGbJD+s 3LPi8tfvhuX7aO6s3Im5qVT7Nonnzoz0NpBl57gxFGonNxOyn0fTDBrnYSAj8IU+ WJPP8vkpm+LfWduDWjrTqEmeLzZgCumD7QLpBpo/BaaSTHmXWQ5UUp2+ZL/qfE7q 31KnVl0wItaJf16q1ZINcQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 43t88a5e39-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Jan 2025 14:04:46 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 502CqmBM033469; Thu, 2 Jan 2025 14:04:45 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2174.outbound.protection.outlook.com [104.47.57.174]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 43t7s8bg1h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Jan 2025 14:04:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KVaXaP0sxS5MzW1tT6Nfp/YblOL5AvUDy/Z/LqYh1W9XiUX+bo9zu12l0B0Mb21nwZPxD6uYen7zrIZnr7ZhFjBH2Pg/gppjuRFQP0m/W7XvbGU3GFg93mOhVgbwVtpYv9c+7rMdbJTZHpfoROE/BvY4H0pEa5eszplctB6iapQK8YjvZu/prfm1vcuf4MgcBOfi38o3gUiihBGDyh7IuxddEoNUroG68RHdXgsVDoKspSQb/NRHCgGj9/LjbaOt1PioDUg9eFM9VMA3Qzl/hW6Kb9fOyDrmdPAwDT5awDzZB2qo1X3SNCNvWpkjhgOoX3fbCxumUEPIXVYDstrM1g== 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=Pi6nNeWKVWfsgMMYNfG6r2SBEVk0r2mrnQLm9/GjiPI=; b=SlHUuBVJpYiwDetapkO2eDzaQ3EieIyWBq3YROnqzN8HPcNtDeT7EguDAvRn0AWklMDNG0GxRsAMuNY2JVrpTFW/KLPLJNbrkoy5GeiNEMEeazzJikwxoEmRwFsamjO8d72dxB3trFsU/AzClyjfl3RCwncjziblVYr3/9WWK8adKt1pSp6nB8PH+IfxeWRYseGD4JKPyHy9Eo0M2Wlv8S6vfDeK4XtrC9x6DsO5rmT0KVZUMKMr9AqJm4FibQzHmhln8FM50rENaQqagDoOgyEA7Tr6Xu68xm9mOpNXGrKyNLKEpDsLrkvCwvJV2YEtVLloYISxUhDrzCKP2pg4Sw== 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=Pi6nNeWKVWfsgMMYNfG6r2SBEVk0r2mrnQLm9/GjiPI=; b=mRjnV7x5978W0Eft+/3V1tqBeiYkw3U3RJRWBGkEmGT+O9ix8kr8Do3Q206cmj/HGwFjNuJFYinz50eyhXOyBq/Tfdc7gzYkiSAu78JoeuJaK/2jP/q5IoM4h8Umyh3xRasdBlXJuIM4egLvxyr36NoS0Tb5pCfxMrXp926FB0I= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by IA3PR10MB8164.namprd10.prod.outlook.com (2603:10b6:208:514::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.13; Thu, 2 Jan 2025 14:04:39 +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.8314.012; Thu, 2 Jan 2025 14:04:38 +0000 From: John Garry <john.g.garry@oracle.com> To: brauner@kernel.org, djwong@kernel.org, cem@kernel.org, dchinner@redhat.com, hch@lst.de, ritesh.list@gmail.com Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, martin.petersen@oracle.com, John Garry <john.g.garry@oracle.com> Subject: [PATCH v3 3/7] iomap: Lift blocksize restriction on atomic writes Date: Thu, 2 Jan 2025 14:04:07 +0000 Message-Id: <20250102140411.14617-4-john.g.garry@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20250102140411.14617-1-john.g.garry@oracle.com> References: <20250102140411.14617-1-john.g.garry@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MN2PR11CA0024.namprd11.prod.outlook.com (2603:10b6:208:23b::29) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: <linux-fsdevel.vger.kernel.org> List-Subscribe: <mailto:linux-fsdevel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-fsdevel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|IA3PR10MB8164:EE_ X-MS-Office365-Filtering-Correlation-Id: 6a183e3b-df1b-4cbf-b57e-08dd2b366574 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: Ptjqqd5tw8CVgqH40NcevktjxHcwkcktjkmXImDHcGTZ4mULI+5p2rB6Wcihb/Sllz4eOpIIWk1K1dArqDNx5r3GmkGEhxJLTWlx1a3239ebcoCMQ9oRRVk2fDvOxmHuCnqRwnuK7JK6evBjKZTv645c/zyx2XYoR8/nFBb/4EbTeAMyR8RHhIJymDm04fHPusGHBlzaSWNRr1T0bsiiyv4QbNGfVqSTJfBsSvpRPDT/19jNNquzZnVeFT/1oAeXfGVJVI5YiNiy3xaZqhL0au21YPwEmOymtrmGCVxiyZlIl0bgWoD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pdPGzpRQW1OLEhBiv4 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)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2q5ZgBJEoX79vjqvZy3UWi9+gnkIr6SaLV5uyjZ6siiyMH/M0yJUnu+wFpDNpt6y3uJ5FeLoFzr/Rn0ig8s16q6CiUWoemuIvMKi1F+K1Mz+q4SiYHg8XaYR0JPdlemtjglv7FGKZZgciXVs1ywvb7sV8kveXVhQrRxToUB3cqGEoKoC8Esz9veyyU8h7UnvyKbYDSB027Cb2sx9dD7sKtOyDHdpG4dxEz+dqKaWBY2itzsIDfP7fd7GeXgMqL4Tdk7RP55cxwkKiWKruaSQnDVocnshwKX0jLseKXIHjYpszd8p8pOXNYTloUwwsL+9cpwDkR7Daobi0i6kaMvK+3RiG4ah77/0zQKIRyMZz5mNxuMArn64WCd64+1F3tQ78ga2/lKgK6ZQcB0B5B5dgJpnrfpuKpcU5gsLlw9CFgSGnt3bO3tBHLeqHrknvug3uht5rZNAMbRoOI+6lIZIZrucUo+rDHjm9FdFn6OZkmZA4ScQosifDZKzU0gafw7BsQ7vj6Ewpz1WJ6U8txDjUE0sVDWeCKxK2edbK6a3/BQiDFpQjHtajIohrVFllQja+OK+abhHwUb6CYL2inbYJi1acpC/MkAz80fYFIenquvgSR7nSumrR6eoGHJM5c84PSX8FqgXYPzn7kotit+lV/dHIshN9trqL0QsLfryS6XjHFHzpTGL3gEIgnDN5kLu7+/yBJKbZ7kkDOoElr+2NcXm3G/Tpsz47B71MiNSTUXsfT3NzTRFXM94RzcWvZLcXBs498WVP2Uorza59OmxvqTN5tZYCEf9Al8937c+KtromDxoNWqc3v+Qz9h8fLSLB2DnDACbrXCC/rdxgyTSF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hzXxK+hFnQHWHWJ2wW0xvl3i9vm6IGczAQVhM7dYnooiaS4Ov0TFCpWKnkk+Gw/oaVygd/9TtmjalJwn3ZNeA+dQLvZNpXc6y/1qzo2fW2ZwOUlmE5INHNkBqlENFPZXhbLkXOTZ7zciWY/d1sNHC6Yk/LXUDwIqqniUgwCWkup3vbmWBCDSU+5LdOPb7kwYu6/jAtusGj9IVCg1gZOzixLkHjU77rsnFeD6qQdO7kaa0wjM8g6SdlsegCZVr5dDbOj8FEl48EJqbz3M1tSGrKuMUtn2an+fHzaYqqyWGUTkpUbsE3y5a+ze/1/mw1avCWFDWZwPFOONv8W8MSFZvc4IgkvSs2zIQCgH1U3QLOz3Nty9F2Z9yk90a/o= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a183e3b-df1b-4cbf-b57e-08dd2b366574 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2025 14:04:38.8171 (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: FCcwQ5ZvFXFuo5lwnzj2fwa1nQgEbJfhiGMtHVkQBbXnzvN3EssM7ebm2cSLz2uIclMNMy/7dPKMeMR45qbu/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA3PR10MB8164 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-02_03,2025-01-02_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501020123 X-Proofpoint-GUID: fti-B7houOccjxpx9_VMsNrCZ_MjE_nY X-Proofpoint-ORIG-GUID: fti-B7houOccjxpx9_VMsNrCZ_MjE_nY |
Series |
large atomic writes for xfs
|
expand
|
diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c index 18c888f0c11f..6510bb5d5a6f 100644 --- a/fs/iomap/direct-io.c +++ b/fs/iomap/direct-io.c @@ -314,7 +314,7 @@ static loff_t iomap_dio_bio_iter(const struct iomap_iter *iter, size_t copied = 0; size_t orig_count; - if (atomic && length != fs_block_size) + if (atomic && length != iter->len) return -EINVAL; if ((pos | length) & (bdev_logical_block_size(iomap->bdev) - 1) ||