Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2641017rdb; Wed, 4 Oct 2023 07:20:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3VFCFkV+M0H3hAVjIGFB6jikFaVjT/YWqbnm0TH1QCvTZDoJA/3ZJ6ldB7Lxa8+VWu/yD X-Received: by 2002:a05:6358:8812:b0:139:cb15:ecd3 with SMTP id hv18-20020a056358881200b00139cb15ecd3mr2629269rwb.8.1696429256778; Wed, 04 Oct 2023 07:20:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696429256; cv=pass; d=google.com; s=arc-20160816; b=C9drKFRWVg5IpuL/nEVT9rBfCBAy4K8KlPE2BWcHtIFvB1gvjscvHpIfQjaeaH52rc PMIvv+7ahyJsq4p4xyHZZEjMFUVUnWYvLJFrxCeLAlRZo+oo2SLJXTP1rUTs+k2Z8vtE tdK2CF1GsA1Lfak2OA7sjuKIkae3ZuhA4Cs/JksrVRh5GdnjZGWdbeGutJ2FxvbEMx4x 4rlDlRrvyStEUkk7swcgh1cjgiQK10qR2MVnkDACxIb8CD67xHTOx7O0NZTcBQOv2JNt xqU6jRgwEog7ABUN+RFgFJQgvfhfs2eAN2bbM0CNGrxQuNkZozki4tlvtylMvAiCuD7d QtrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=NFS4UXBW848Ozv5QNZEt4ExKJE2OACn5VYlQwWtIsCc=; fh=2sS1uP4gw6CJFkh6ss2bta9siCNKTLEklMxhJ9+Wv3c=; b=BLMDciLE4IYYp89oCcviV/mM6t/PWoq047pDzwIDQOM/fFbbOJ3Fgi5b8oLC8UhIbq FpfTutJMYpoqhnjyr2izpR6BK1rkTJbEDb/q8QRmSbq5XW5HjFukBqk2hIFkHTwOncUq GuGtwfOVJCoqbyEGF1PIi2z9s2hOCFBd1H5oWT/p5/yGYaC7R5NsrZwqnR23mrzna1Du SpFQswAo2N/ifS4xOaiY0hlHvtW8dd+EH2XAyXIFu98CaKhU4Ct0qsi+4Q2rKqqOxMPs QdwDFDfMNDsfcIyDYT17ZhIZKXg2RGshQOFpB1rxbNrynpyn7fALpsHkf6cV+6mXCqvU rrjQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=KiCC9lYN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Jgl3ekSh; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id cx1-20020a17090afd8100b00276804791a2si1591809pjb.62.2023.10.04.07.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=KiCC9lYN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Jgl3ekSh; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B5B8E807E467; Wed, 4 Oct 2023 07:20:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233122AbjJDOUh (ORCPT + 99 others); Wed, 4 Oct 2023 10:20:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232932AbjJDOUf (ORCPT ); Wed, 4 Oct 2023 10:20:35 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C73ECAB; Wed, 4 Oct 2023 07:20:31 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3948ipE4031373; Wed, 4 Oct 2023 14:20:04 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-03-30; bh=NFS4UXBW848Ozv5QNZEt4ExKJE2OACn5VYlQwWtIsCc=; b=KiCC9lYNuvXJ+yTECmBZ9Kbp8rp+Xkz9n14RURrWuXmcGzLWrpzHq5wsKZdmHv7Mr7xY Y+O4zNk+pkXWgiAhfYDUuQsnYYhLLd/RSjOrDQ3/QaCXAk6cspCebdqxlT16Y526arii 6xZ+Ks0/c80sdw2B/Yc5PQiP5hweceD04ty8kOaJE/rqhlSvvE1iabPtPgsczBd8svhd IvEPspoU1lcUGF0EJ54Arteo6CcqmerJOxZd6tF+ON/JxopgLiYe+Qe6Pky2vLvaNAqv 53ohslLLSlz9oLEWRHl7pk24F39hegcol8Z1rm745z/MTwd97WzPtkl6mbd/tACqIIm+ Rg== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3teaf478kc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Oct 2023 14:20:04 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 394DFnPl008676; Wed, 4 Oct 2023 14:20:03 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2048.outbound.protection.outlook.com [104.47.57.48]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tea485sar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Oct 2023 14:20:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d3eNBGkBnwU6uQEYUiI/mQPEVFU78NwDI4QwjRnvZpVxPLdsGhFjMwBlrUOKRb25SeB8Ly5BM4dx5UPV9hJDhbpAt3r2Fq72m/KibURj2HoNt+7O7qVWnMnfd6UjiCz+z+WYSkykkrKBlYZd3kBsKWDUEDYwqzmpbiP5XQ1uCeS2tkIW5KmLmT6yeVK96u/wFjJkn+ZouvrJOP65ixhacbbXB8G0RF4sH8rUZaM1CL7jyJ1nRN8iA6WSj6IOsx6qf4dTF4dhTLjHohKqaXFvNiU4ufYb51xs1Zskjm6zWo3ZWmWdUpK0+FCgR3I+SYxh8k/fMURxmrytFvpQlPd5Hw== 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=NFS4UXBW848Ozv5QNZEt4ExKJE2OACn5VYlQwWtIsCc=; b=nkGk7ICAgGCTU7e5RifWV496GCt+A4b7p0fxeyyyynjgxLkcfKteSDuUwdspVwuuVfB2KufVMWLHwFkcdDDDF2KoWx5rf3/2tQkHreNNevs8ZWMmH6rPV3QsJ0l6p7dOb453LcAXU3RNdfVUQdDLL7vwSeIMjG8AEps91VWqbzaXseM5g2mrJn/No1XhhM7tnyQuYnW7m5XUTPAC4mwYYoksW23/luMzpEfRMkJNxqaNkJ6396BJEls6H19G0NIc6s9tjg0/RC8Qk0XRdkpuxi/5FusKpQki2dUZadRNdb5pc1ZNYn6gu8NTDFby6siVPIspQwxxWXn2/2vptZvVBA== 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=NFS4UXBW848Ozv5QNZEt4ExKJE2OACn5VYlQwWtIsCc=; b=Jgl3ekShJhmXQ8S+1KxzyW4J6oeIzKl3XxV+pZIqmme2B0FtgY9aT3qzEkuS6Sd5dndiqxogfryQY1hBX9YKXlYHxa7Ryz8ypQnoS65ghN11LN2OJnDiaQT9mQEvM9ujCgPTKWm7iSM7qkseudPpnRmfzEKIECpoTIdMIa1xNu4= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SJ0PR10MB5646.namprd10.prod.outlook.com (2603:10b6:a03:3d0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.25; Wed, 4 Oct 2023 14:20:01 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::ebfd:c49c:6b8:6fce]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::ebfd:c49c:6b8:6fce%7]) with mapi id 15.20.6838.033; Wed, 4 Oct 2023 14:20:00 +0000 Message-ID: Date: Wed, 4 Oct 2023 15:19:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 03/21] fs/bdev: Add atomic write support info to statx To: "Darrick J. Wong" Cc: Dave Chinner , Bart Van Assche , Eric Biggers , axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, viro@zeniv.linux.org.uk, brauner@kernel.org, chandan.babu@oracle.com, dchinner@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-api@vger.kernel.org, Prasad Singamsetty References: <20230929102726.2985188-1-john.g.garry@oracle.com> <20230929102726.2985188-4-john.g.garry@oracle.com> <20230929224922.GB11839@google.com> <20231003025703.GD21298@frogsfrogsfrogs> <20231003154643.GF21298@frogsfrogsfrogs> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <20231003154643.GF21298@frogsfrogsfrogs> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO3P265CA0021.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:387::8) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SJ0PR10MB5646:EE_ X-MS-Office365-Filtering-Correlation-Id: a8746f10-c3f6-4b84-d331-08dbc4e4fe94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: caaoEKvO/f7fKYodfX7DPphIpZ5+WPJYoh/1dlEkizo5kvnBZriNWnqp15JOMWjotOwcDooVT2v273SCQcjrg+x1kTwk3rchhcEva5mhM/+sSVhJ5UeIFEq1KyHhW7MTjbHAjNZZWPT3bUO85d+mouHTE5LdShV4IpwH2IKxdsadY7/s7MIOOXnXbTKaF3K/xc8Cm/uZUYv+Nnr4brw0QzLvdw5wteTv4NTHegIacVkXN3lZEo2MwvzvzHsSNBRBJshuafMUvNDPwyz6A8B80rw1JE3Nl61VW0rruoRZWoSwCgMpRuciAN1n9hUGSG9pPFoBu+uw81tkAQ/tSxwOaBblV30p5XfdYZDDsHs1/6m69HvkYOVi5Svir6LFbG7SRap2XrufJ20JM4yfx++0ROEiA8xW5HTpLFfE7Fc7brAm4e6FfM/z7WZuFqF9JRjGGK6C3b9Pmrq+CFHomY9hxKm+qmxgZY9/2qt1a/TWFoA5oJ8ZEETCGT+ed9MTtucoF5n5bGWxvSxYefMcayfvnMaAze/eHqonZs7tcJZcrle105aaesVD332iXV+NXhSuAcVzKUYnRGtQxOjCQ4PCGv6KnDsZ2bjz4WVB8qGRRSGFCZkalWGPZ6CO7Y3toAGK5G1KbiTpUj3UGBLNwqI63Q== 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)(376002)(366004)(346002)(396003)(39860400002)(136003)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(2906002)(31696002)(107886003)(53546011)(6666004)(66556008)(38100700002)(86362001)(6512007)(66946007)(83380400001)(54906003)(6916009)(6486002)(26005)(6506007)(4326008)(8676002)(316002)(66476007)(5660300002)(7416002)(41300700001)(8936002)(36756003)(478600001)(36916002)(2616005)(31686004)(45980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tsZC9QOVNsK3JTUExNVE9kNEJIVk82UUJmb3BwRHlUWW9CdTB3?= =?utf-8?B?RWtuckRVd1NnQ2owZVJ6L1NHQjdzSHZrVDFNZ2dnZUxqL1QyVzJ6dUpPTmNa?= =?utf-8?B?am5aeU1QQWpQR3QycGVaTUhNRFZJaEhaYmxrM0M2UGpxN242L0gzTzlHK1JT?= =?utf-8?B?TnFGZlBSdVgyYWNYQm83YjkyeHJBY044MXB5ZVlYKys3cTdHZ3BjU1FOb1VB?= =?utf-8?B?VHluM0N5Zk93TjJJTTYvRXRZSG9CdkJ0OHJZYXFQZXZ3eHFIdlJibXhZeWla?= =?utf-8?B?YWdydz09?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8746f10-c3f6-4b84-d331-08dbc4e4fe94 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 14:20:00.8673 (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: C0hozBqS5+YBPlUHvfU+tjXkzhX2R555aidJxsrYZLKqBAM1ZlgzS4RHoY4mKLY0XqdXvUqTrd+10unm2EZtyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5646 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_06,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310040104 X-Proofpoint-GUID: DAB_0ak_jFWZ-gCwe_0J4cS93ypPVdMF X-Proofpoint-ORIG-GUID: DAB_0ak_jFWZ-gCwe_0J4cS93ypPVdMF X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:20:54 -0700 (PDT) On 03/10/2023 16:46, Darrick J. Wong wrote: >> stat->result_mask |= STATX_WRITE_ATOMIC; > The result_mask (which becomes the statx stx_mask) needs to have > STATX_WRITE_ATOMIC set any time a filesystem responds to > STATX_WRITE_ATOMIC being set in the request_mask, even if the response > is "not supported". > > The attributes_mask also needs to have STATX_ATTR_WRITE_ATOMIC set if > the filesystem+file can support the flag, even if it's not currently set > for that file. This should get turned into a generic vfs helper for the > next fs that wants to support atomic write units: > > static void generic_fill_statx_atomic_writes(struct kstat *stat, > struct block_device *bdev) > { > u64 min_bytes; > > /* Confirm that the fs driver knows about this statx request */ > stat->result_mask |= STATX_WRITE_ATOMIC; > > /* Confirm that the file attribute is known to the fs. */ > stat->attributes_mask |= STATX_ATTR_WRITE_ATOMIC; > > /* Fill out the rest of the atomic write fields if supported */ > min_bytes = queue_atomic_write_unit_min_bytes(bdev->bd_queue); > if (min_bytes == 0) > return; > > stat->atomic_write_unit_min = min_bytes; > stat->atomic_write_unit_max = > queue_atomic_write_unit_max_bytes(bdev->bd_queue); > > /* Atomic writes actually supported on this file. */ > stat->attributes |= STATX_ATTR_WRITE_ATOMIC; > } > > and then: > > if (request_mask & STATX_WRITE_ATOMIC) > generic_fill_statx_atomic_writes(stat, bdev); > > That looks sensible, but, if used by an FS, we would still need a method to include extra FS restrictions, like extent alignment as in 15/21. Thanks, John