Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp994891lqm; Thu, 2 May 2024 01:56:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvDwlFsy3dobIpb6++2LuHvAtfFoOKzKroZIedhiZSsvCRVWGD/r37fhetO43iBP9mNn3Lkn35l82YiwZuoeBdV1MbSr4OzkEVIDOLQA== X-Google-Smtp-Source: AGHT+IGoP/QOfi+FUBv7n9SqlAB/VHNIsPosld290JtNTV5oxHxmIlTAtKgBHCUV4tWX0zCRHeYI X-Received: by 2002:a17:902:b948:b0:1e3:cfc5:589c with SMTP id h8-20020a170902b94800b001e3cfc5589cmr5007301pls.28.1714640191096; Thu, 02 May 2024 01:56:31 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e14-20020a170902784e00b001e4919ed359si589132pln.642.2024.05.02.01.56.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 01:56:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=QBC8tP31; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Uh70MEW7; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-166161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166161-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DE5628124C for ; Thu, 2 May 2024 08:56:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA00E50A65; Thu, 2 May 2024 08:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="QBC8tP31"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="Uh70MEW7" 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 4275B25634; Thu, 2 May 2024 08:56:15 +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=1714640178; cv=fail; b=qWh5aGeo3qCGW1NIILMUAVxG1rT7gcnT8wvKdgGBk/lMlgpsVMGJY5pF+4RsUBT1/LdrOh4I/MpyCh9ZgO5judcHDWYAv+iLJir8P6MAy93pF7C2A/OPpnIjA+wDtOGVtPCxTlRGTF8+J/8zNqI6OVK0sO0EcgTLE7eJKdDzJ3M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714640178; c=relaxed/simple; bh=6qHIaRiS8MyiLb06iSzykFHRQ9w79ItQ5sWzhc2stQY=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=Hjzkp9GxOt8XKjLADwt6yI25RB6uoJd+SJmp484m7EMdW5bzQkawTCUvtYS2HxghnKEG0FhmpkiWph1bYDWDHvBhtXvkeRb5VEZlQy8UUi4I4ElwtM35AzKOa2WQeRoay/cPJwO0TC0Il4IUQO7N34kDepCqsdVDSAAwGkVK+4Y= 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=QBC8tP31; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=Uh70MEW7; arc=fail smtp.client-ip=205.220.165.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 (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44284i7T029899; Thu, 2 May 2024 08:55:53 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=HmXmyTJpQxaWqOgRB+LHYLZKiNs00GoOij+RYezuync=; b=QBC8tP31MU5ySBzwOs6rymzlGz7CMbzFPgLzx6gXQUzmZmV7PbXGDsAoTUnf01ZtdZNB XHPCoOih/fc7VC6pQvbgL4KRZZekE/g7dCyGGzVJQiRX7ONfrC8R6VqETP/2nhrI1Wmc nQHHgRcWPt388Ix5gzA1mMqzUuDllzXqkCCvjzMrYw92+wqEzzEwltv7qRmPfzM2wCTn Ze0kyWcUngATcMC6hJVos1EDR5s8td2g5bAjXceKeiDXbLri76hpEafrvLg6jTjXWU4u xBdpeO+3K5Sm2sJCeZRFQE86aBYlQKZBMDj4n85Uf+gbh8SLIIaJZuC9IGHR1SWqLRkh Jg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xrs8cw371-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 May 2024 08:55:52 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4428oDdh019897; Thu, 2 May 2024 08:55:52 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xrqta46hd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 May 2024 08:55:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lxXHa/MrxSzewv5Yy6HMrWmg9jSsuGSzEz9HIcFlytJ7fJu0O52gObfahUokXK+CjQq4XTjcjdZk63fKQUAuLqN9piEXrEgNP4XPb71/1VUMt2brekeADUvuhFmE83sAp86axCDeSSpRM0V7WBnBiwKkT27G/mKxwJzujw4uUqFcKGGH+9CMJ5y+fEmZNNVs3V4DJ69lV0IM1XKeE5WyodYAMpjUbR4EZ+J789c8spIdA0fsmna7NIqtXhoyRFqQYgYnNuoAxIPrMuvKRK3sXUJ+exSThwrINxCnFc8cXK5sizGkm6vMgnN5g5cBJCNEqPtX+k4hzPle55DAGGBqWw== 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=HmXmyTJpQxaWqOgRB+LHYLZKiNs00GoOij+RYezuync=; b=HgOi1tI1YMhC/xVpyihCsO1BXsGXB5B+VcMsAvbqCRcMdchAviyCrwceUhxVoK2YmF3ramTRVEBkmQJjyXiGMuuO+VB+QGAXPp08aqI4kFWVSaOEl2/BvPnsGJhGyvEqkKE3r/cYxRP6UbaXV4WvSLckv0BoU0p+uLQGXyNokDHnVdJ1noQTEtQxIKxsmE2fx+n0LSDcD+c08byXR9Hp53PE7P3IkTFYqP47smlBOPUvmEqCwrLQL7R1Ni0+ncFMP+8LcUuHGdhi12MNoYSbDY5JsZqqpoX8zT4vXBDCrD31+Wx7bE3MKOPWoSx3ciMXh25UEMdj8rJ/wRmqxKlM2w== 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=HmXmyTJpQxaWqOgRB+LHYLZKiNs00GoOij+RYezuync=; b=Uh70MEW7CfLbfJmprP7kq08xx0WeuicbG8UXX5dehT+uCL/HtVpEaIjW4u0/Q84BSBZO62hqMMyWVU4Klwhjs59l7WM16SYCzMsGiuap9htY4TDOM396iW+qaG/5ogVgl5MzoS+PQolbM+TOhwwYhqO0L8jHO7iZYEQzTJsGNyU= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by PH0PR10MB5579.namprd10.prod.outlook.com (2603:10b6:510:f2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.25; Thu, 2 May 2024 08:55:49 +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.029; Thu, 2 May 2024 08:55:49 +0000 Message-ID: Date: Thu, 2 May 2024 09:55:44 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 09/21] xfs: Do not free EOF blocks 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-10-john.g.garry@oracle.com> <833f5821-a928-441f-848f-3a846111dcb7@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: LO3P123CA0003.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:ba::8) 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_|PH0PR10MB5579:EE_ X-MS-Office365-Filtering-Correlation-Id: ffd152c4-cada-4878-a48e-08dc6a85a9ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|7416005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bEgxOUMzbFcwTWI0REtrM3lmLzJXSTdYVnFyZFh4aFF4RFZZRlphYVI4eVYr?= =?utf-8?B?NEVWNENPVVpEUkhsZVV0bDdnQWI5RkVsWi9iSmFaVERXM2RRVDdLRHlONDhr?= =?utf-8?B?Uj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HZkRnFreHRy?= =?utf-8?B?TXhnK3FwdENZQWoxby8rLy8vMnVqZENINGhFZFN5T2hkcitQQXpOQ1oxNmR1?= =?utf-8?B?clFPbHFvOUZzZVFsTmVnYTlTd2ZvNEJjbHd6WEdVKys1NW1JREpSNTlXcmJC?= =?utf-8?B?U29WVFNQZ1hzWUpJMjVuWmVENTF6OERYT3kzakhlUjJsRkhsM003S0YzcGhE?= =?utf-8?B?Zkh2SW9qK0NYODlUN2ZIZ3hWMjNpTm5pVnhITGgyalZDajdJSTdUYmRGNmQ0?= =?utf-8?B?YllIeUcwR29pMExLRVlnb2FYSWhOMjA4a2JpckxDMEVPOW5wZ3JyTEErOUJ5?= =?utf-8?B?a3FPL0E5T0lsbVBpb3B3V2JlSlphQUxITUhBVVhLanZURUpHZ0VWaERsaEVY?= =?utf-8?B?Z2Z2NzdHc2xqOS9UeTE3OEVBYmFyK0ZJcVdZZUtzbHJueitMZFl4eEVMd1pj?= =?utf-8?B?SEhhcUswWHBRVGFabmNDa0ZzOXI2MjNBNGNPV2NsK29idmtOVUI5SGJsWnNP?= =?utf-8?B?RVhnVVoxaDNVMjVEa0tBajZtazVkQWh3VVB3d1Y1OGpKY2tyK3lCQjI3ckFq?= =?utf-8?B?VmZhT1YzczVYYjJlN3VHZVFJRUZ4VU9CMUZYTEpUVVp6YzZxWHFvdDE0ckFU?= =?utf-8?B?d2p0YmEwa0t6Yjd3QjZhdytlN2dpWnRPNkZBY2h1T3V0bnFPbVhja1NFK09u?= =?utf-8?B?V0UxcEFoaURpQXNiMURPK2M3L0xLcXo2K01DOFlzbFZTMGNUWS91c0V3PT0=?= 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)(1800799015)(376005)(7416005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-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j0qfMIeaS1QK9bLNwetafB5pwrspZkB8F/n38gOLYbkvndCvsCJKzVGNZjrJ1xBLYrXw0ygy2vFrCS5ASDq5EOB7sJc3YGvq8XFa00rmBuUlsjgSncd5NLEKRY8aEfukUO08= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffd152c4-cada-4878-a48e-08dc6a85a9ce X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 08:55:49.4525 (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: mnNr0AvKEWFE2EISwdZpPA+H05gVzlx1KpeA8yjEUwkrHlr7o36dab0677BWGpsgRm0jooTBTgLSetbI6kAPQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5579 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_16,2024-05-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 adultscore=0 phishscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2405020053 X-Proofpoint-GUID: YvBDcHkov1WjIxCqQSin9NBxMJh6EFNt X-Proofpoint-ORIG-GUID: YvBDcHkov1WjIxCqQSin9NBxMJh6EFNt On 02/05/2024 02:11, Dave Chinner wrote: >>> static inline bool >>> xfs_inode_has_forcealign(struct xfs_inode *ip) >>> { >>> if (!(ip->di_flags & XFS_DIFLAG_EXTSIZE)) >>> return false; >>> if (ip->i_extsize <= 1) >>> return false; >>> >>> if (xfs_is_cow_inode(ip)) >>> return false; >> Could we just include this in the forcealign validate checks? Currently we >> just check CoW extsize is zero there. > Checking COW extsize is zero doesn't tell us anything useful about > whether the inode might have shared extents, or that the filesystem > has had the sysfs "always cow" debug knob turned on. That changes > filesystem behaviour at mount time and has nothing to do with the > on-disk format constraints. > > And now that I think about it, checking for COW extsize is > completely the wrong thing to do because it doesn't get used until > an extent is shared and a COW trigger is hit. So the presence of COW > extsize has zero impact on whether we can use forced alignment or > not. ok > > IOWs, we have to check for shared extents or always cow here, > because even a file with correctly set up forced alignment needs to > have forced alignment disabled when always_cow is enabled. Every > write is going to use the COW path and AFAICT we don't support > forced alignment through that path yet. ok > >>> if (ip->di_flags & XFS_DIFLAG_REALTIME) >>> return false; >> We check this in xfs_inode_validate_forcealign() > That's kinda my point - we have a random smattering of different > checks at different layers and in different contexts. i.e. There's > no one function that performs -all- the "can we do forced alignment" > checks that allow forced alignment to be used. This simply adds all > those checks in the one place and ensures that even if other code > gets checks wrong, we won't use forcealign inappropriately. Fine, I can do that if you think it is the best strategy. Thanks, John