Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5298084rdb; Wed, 13 Dec 2023 05:04:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDu5VUhW3QL9qyst6QP4M83jOC4QeXSUyhzhhydzi7GKTLJUQEsmkw5MLXpSu07+UI+O1p X-Received: by 2002:a17:903:2381:b0:1d0:711b:c2d2 with SMTP id v1-20020a170903238100b001d0711bc2d2mr5230038plh.13.1702472681366; Wed, 13 Dec 2023 05:04:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702472681; cv=pass; d=google.com; s=arc-20160816; b=zQR+Czt7IsTCsOrkz9nTaw9xFxSRPsXL8wGswfhcn+2YDTX7Rlw3+mncIHLGWLtcSt 2m6Mi4Ar8Z+jQ3vs/fmYV4uoVpvnafmYms7QHqR7mEZU4qxjXJI8YOfFncJPiQiTQ3OT 9lA8/FZjk/rFCC8eW2kJrKpLcQCCMEEClvoDy8vyvHa+Xdyu/GAUSKqFcfIEioXYujml SJaLzHUliTtXZl7kXm20T3CsGAF8ZsUhgmW6V0/jFVZFJ/fXSsjYtFP6B+rNBayah2UQ FOffHbeyI9cerjTdWx1syyATs7X9xpwc0hO76itKzf5pWdWweHuOERWYlZMdhY3Q8U6I v+Mg== 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=A5tpDHTxqizoicFmRBn5uZ5fN1ELgAlITteSCXHZyCA=; fh=FM1YlNqA0O4dcwK+HkZCF7WVRZ1vQonn7JiB1LgsOo0=; b=NHGnYVUfo4lt/IMHjGh+lvW/6s9UzLxq3Uvc9tegykATfVtHQ6f9qISawMQrFRN2OF KtuRrwCI5CKtF/3RHTxD7vvfIyXxYowpfrhF0TQCcyH8t8H1LUp3kduteP5MDfRQyTq8 Yx7nicPqQW3sxFs6L+DIY0piPq+iobqxBkDbQa32mIyBIOK33H+7S4jwNvXevt9++GQZ jVwO0JvHWJJ3yGGHvz+ssyiS3qheJbOT80gbylXKqE0ru0uNbcDePpUJWycDrUraTOa2 SPYPMwEeyYOHJIseLtLe/mKe4mGICswqwAMGh8Qt1NxjkWMudO1OlTCle19TPFACuc1e 7lgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b="je/P1Z1V"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=v+LcmImB; 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:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u2-20020a170902e80200b001cc4770b9aesi9665741plg.419.2023.12.13.05.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 05:04:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b="je/P1Z1V"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=v+LcmImB; 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:4 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 howler.vger.email (Postfix) with ESMTP id 53DEB80B6C25; Wed, 13 Dec 2023 05:04:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379083AbjLMNEL (ORCPT + 99 others); Wed, 13 Dec 2023 08:04:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379027AbjLMNEJ (ORCPT ); Wed, 13 Dec 2023 08:04:09 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 801CCD0; Wed, 13 Dec 2023 05:04:15 -0800 (PST) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDCsgbd009436; Wed, 13 Dec 2023 13:03:40 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=A5tpDHTxqizoicFmRBn5uZ5fN1ELgAlITteSCXHZyCA=; b=je/P1Z1Vtc0L2EmX9e87PMlX8qCVttmYOuMFPvMs95mJ1KAPQSlVaqx2STiXahw7Zm85 QUm60MOfpy2CGq1DQcD3aYHaeS+RmaOc4C7N0U44zW9cxD7tTERkXCLHkizi5EGnTHJK FLPCQUrj03Cw5UWJzGLcahX4WEKQ84R5+5gY3bIT86Dgm3fO6kxcmVS0h9e43MGyNYaI 8mZSDC0UTq1JkimffyJQ+0gEDcdeuMReV5z6Oo3CE7QjWsgJaScOxN0r/3MIobrRRJ+I ADgBIHyUc0ebnqnZFwgnWn11a1oHJtIhhH3xraAK9iOoKkIXbH17zwk13hiFwpjvm9xf dg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3uvf5c85xj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 13:03:39 +0000 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 3BDBUC8O010151; Wed, 13 Dec 2023 13:03:38 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2168.outbound.protection.outlook.com [104.47.59.168]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3uvep87fyj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 13:03:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a3zLZNlwg2/7D4bkTxxK21aBaSK889r7N3JeXLxSE2gIQCOhMERxLenzXnAxSJWjOESp/7NwXXjw8AlD7RoZKzkwL3aLMzdEAMwpU9adG0vpnwSBCXEM1xEJ0sEmjxqhn+2/Oews8+Iic6SrcgyBeBbD+SBVrXHSc3gSxB0nzCOdZ2uMcvax7twk4a3AOfov1t4EWinUgQWmVdin2BOdHr047MrKWzY8WH9C1vw9ltUU1HQ5Fz4s3WUC+BWdKROc2SY7mKJUvuGl3Cp67v1PQgcO9dBj6qJjNa9jE8h3RyMiDE5n2qOz9AD5uv5kkZMhwZlUcltanI00m/6rkNQBNA== 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=A5tpDHTxqizoicFmRBn5uZ5fN1ELgAlITteSCXHZyCA=; b=ku5+XK480QyC3DuSURuWixBaG2r0pVaNqAdSh8iGjBJAr3z6nGA+/zPjcyolCj/x50fyJRBjuoq2M6mRbmaL0Ld1fadooFsGEabAqBFXt+wjAT6dcc975uNri/3qYr20MenQ6kzzGAkVEBc4TTdnPloABDwOzL2SmNHf0NbWTbgDrQ6ylU0jhDO2L8QJAJaS0BF2BkxQppI1KhJzi7lzTmBlSOdRrNeypEX4vfvFe1bP0wAt/1s4rPpU5onLK5hXc7OD53urnbSvHPJco3XficxppcBzJWBEjQOmxDpJbm5pCE5P0UFrSviSp0xW71HEyfDjQXUzUAFEjJh+nm7S1g== 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=A5tpDHTxqizoicFmRBn5uZ5fN1ELgAlITteSCXHZyCA=; b=v+LcmImBWElH9O2c+z+PIl5aLXJa779MWJYlYE6+Dq3XpBfozgpQqi268+iMcp1rr3PuBGpDxxXruqmJOMLEwsK2llcy8rOs6NzsbLLyFOtozXkFyZWS48meBLn2hu8bwpEHleoFH+3PfHhQ04vVkT33ED1JpE3e3Ou+tQkOoxk= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by DS0PR10MB6799.namprd10.prod.outlook.com (2603:10b6:8:13f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26; Wed, 13 Dec 2023 13:03:36 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::102a:f31:30c6:3187]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::102a:f31:30c6:3187%4]) with mapi id 15.20.7091.022; Wed, 13 Dec 2023 13:03:36 +0000 Message-ID: <58037a2f-cbae-4bc1-bea4-604f6951b709@oracle.com> Date: Wed, 13 Dec 2023 13:03:30 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 04/16] fs: Increase fmode_t size To: Jan Kara Cc: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, 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-scsi@vger.kernel.org, ming.lei@redhat.com, jaswin@linux.ibm.com, bvanassche@acm.org References: <20231212110844.19698-1-john.g.garry@oracle.com> <20231212110844.19698-5-john.g.garry@oracle.com> <20231213112026.kkfcwtg64kiadhn5@quack3> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <20231213112026.kkfcwtg64kiadhn5@quack3> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0124.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:192::21) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|DS0PR10MB6799:EE_ X-MS-Office365-Filtering-Correlation-Id: 34eef5dd-fa49-4716-0076-08dbfbdbead0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9f0hpxbdTDp0Gm3vp/zMz7JKhvwmKIEbChcQ5TnKzybKh1cch1iPibD/LkJeeHdO/kVYWBXe7lPUm5GgHu5ehshL/DbQ2jxI1Bl8jknIMdBBR6oPFWddfw1P0VqxkLraN4liOUMfJZuE+zGSBT2z8RgRgmvNOy8e+sdMvkgft25ONesvKc5gfQIYT5gyk89R8hpNEO00iuR8MRVvfaoMQpAfR9fUAqrBRVConsF9IvClNHvjhtl9y5+vytO8KKlRkn9sBZhKpkYOhjgBqo8z9hNTT0a7dAKkWBrMGb8gnzU9e5nwRDibKmMT9agxQHpnSc3qgqMJJD829Bi1GJJVZTeHTufMbhEPNGhV89nDpABvlhOluBsAAW4hxP7YfQhYj3NFD1RqTIQtgqbV11f6IHmaVaLs5dXZ3hXEZ/P3DW+mf1LVmu7lrhlaWBn+svctIm5M5UMmXb6s+aVt4QaqkVnb8hYb6cOl8wKV3FF9w8qHNtMG7F3YDl8nE10inrbObPNrzCfvSyzIcAXg4OMZkuKz0cfI7HOsQyPbkiq5wICI4ZqlpgdB1JCJ5nzUWij/NfnqLswHM5SYBUpCEcoqY3OWqoT5LKGjGQfUlAFsRQxenvKeGxNKtF8PrcrhgbnoPO/z5ssteMhAzjeuWl9AnduSaea3vVZiDMprMQNDLLpXqgnS2hafogjZRkEbT2eyUN59/qRkloumQg1FEYbqag== 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)(136003)(366004)(396003)(376002)(346002)(39860400002)(230273577357003)(230922051799003)(230173577357003)(186009)(64100799003)(451199024)(1800799012)(31686004)(66899024)(66946007)(66476007)(66556008)(36756003)(31696002)(86362001)(38100700002)(83380400001)(6512007)(2616005)(53546011)(36916002)(6506007)(8676002)(6486002)(6666004)(7416002)(2906002)(6916009)(316002)(478600001)(8936002)(5660300002)(4326008)(26005)(41300700001)(21314003)(45980500001)(43740500002);DIR:OUT;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Qy9SKx+hKrmIBbf0bUw4wZLVX/a9n8AN9fAHql27dFCBDkSZQE+iIunUqJyZwWexLtClnAHhqi23uFAbODIngR1s= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34eef5dd-fa49-4716-0076-08dbfbdbead0 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 13:03:36.1293 (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: MPYxn79DxKk5iF4PIvNdtgDKvF2vxR6EbN16rBtgloKZZCLoAg3Z/xYoY1HnmJXjOSqSo0T/CjFT37Yq/Pi45A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6799 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-13_05,2023-12-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312130095 X-Proofpoint-ORIG-GUID: cE4HmDVkSSsEQnhapUKqYNZdoeYMRSYh X-Proofpoint-GUID: cE4HmDVkSSsEQnhapUKqYNZdoeYMRSYh X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 05:04:25 -0800 (PST) On 13/12/2023 11:20, Jan Kara wrote: >> To allow for further expansion, increase from unsigned int to unsigned >> long. >> >> Since the dma-buf driver prints the file->f_mode member, change the print >> as necessary to deal with the larger size. >> >> Signed-off-by: John Garry > Uh, Al has more experience with fmode_t changes so I'd defer final decision > to him but to me this seems dangerous. Ack > Firstly, this breaks packing of > struct file on 64-bit architectures and struct file is highly optimized for > cache efficiency (see the comment before the struct definition). From pahole, I think that we still fit on the same 64B cacheline (x86_64), but some padding has been added. Before: struct file { union { struct llist_node f_llist; /* 0 8 */ struct callback_head f_rcuhead __attribute__((__aligned__(8))); /* 0 16 */ unsigned int f_iocb_flags; /* 0 4 */ } __attribute__((__aligned__(8))); /* 0 16 */ spinlock_t f_lock; /* 16 4 */ fmode_t f_mode; /* 20 4 */ atomic_long_t f_count; /* 24 8 */ struct mutex f_pos_lock; /* 32 32 */ /* --- cacheline 1 boundary (64 bytes) --- */ After: struct file { union { struct llist_node f_llist /* 0 8 */ struct callback_head f_rcuhead __attribute__((__aligned__(8))); /* 0 16 */ unsigned int f_iocb_flags; /* 0 4 */ } __attribute__((__aligned__(8))); /* 0 16 */ spinlock_t f_lock; /* 16 4 */ /* XXX 4 bytes hole, try to pack */ fmode_t f_mode; /* 24 8 */ atomic_long_t f_count; /* 32 8 */ struct mutex f_pos_lock; /* 40 32 */ /* --- cacheline 1 boundary (64 bytes) was 8 bytes ago --- */ > Secondly > this will probably generate warnings on 32-bit architectures as there > sizeof(unsigned long) == sizeof(unsigned int) and so your new flags won't > fit anyway? Right, it would then need to be unsigned long long. Or add another 32b member for extended modes. There were no i386 build warnings. Thanks, John