Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41599C64EC4 for ; Fri, 3 Mar 2023 18:27:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231644AbjCCS1K (ORCPT ); Fri, 3 Mar 2023 13:27:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjCCS1I (ORCPT ); Fri, 3 Mar 2023 13:27:08 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2055.outbound.protection.outlook.com [40.107.237.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA4DF10A85; Fri, 3 Mar 2023 10:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bnKrpWCFou7tY8zP9B3wUGQKW57IY84F2dZMFcVDB7VZJIIXBbQGQPENcHgrjC23HTcED2wg2SBDCwnm5uDU3058lU0nvntLZdN1V6sBK4N/9uLzmJ5ZKm+71i4imZk0hYVpBMLsiKjFVclGYGF8Edf2Ab+YnvJ7OgHoHGUKgLhHZI/LTY3WcN3KHZ5NlP4i+YJhrCvchtVVCoHBK1GPNJZuvtU7rh6jmROUEFCrJfanFPZLIlI98C/EhcEvsp9ngsB/5qpWKQ0Dk76wgbmAiSpbG2vcVtvy/M62OApteJkymaLHdo5cn0JJpJclUELdAS3udZypHN6xRDSQET3PbQ== 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=yyKSAPV55TpmSAeivDtmd0YblwRyYKrz9w1OBOFGdOQ=; b=VQQpwupvV8HAxn8bi+sruCjglFEyKTyHqMdEwiL/nqEvyjaDPOvLslzTuTclK08/aEZhrEHMBm3Q2Xt0yvV3DhGnnAkMvPQ9rXtWh9uOHoAZurbQ29joyu8bxcD6ccy/65we4b6nVlBN1FQLebUk52LKZdMfi8XuTKGXG1V3cXwNjoK7vMvXwQbPv/Xv1GyVf3mlsxOpMWdQDlFPzLm70r01VDc3E7yLjEPrJJKxpcCB7JSTEqBE66I9RTUCHVQVaqU5wxMmTFnRDMECcvlnhkb0m3tc0nrX/SkJ3yl159BshRxzZJUVb2/AljE1WB9v975yIz/zAvBpu9ymCQB/Lw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ddn.com; dmarc=pass action=none header.from=ddn.com; dkim=pass header.d=ddn.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yyKSAPV55TpmSAeivDtmd0YblwRyYKrz9w1OBOFGdOQ=; b=zFmhSKAt2DK6MYQ9qUrVmC1yvpR39hJN4+BgtbgYCLtglnJhwADzBO6/0VVV97eHgJroGyUFvXo9gL38XWQNrVKujQ06yhSfMaz2ucptcG5KaqLCMG+L4WsI0zaim5KQ9DICZg0157USE/e3Ippwc7vUQmHWb6987cJqZwrRILM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ddn.com; Received: from DM5PR1901MB2037.namprd19.prod.outlook.com (2603:10b6:4:aa::29) by DM6PR19MB4214.namprd19.prod.outlook.com (2603:10b6:5:2b9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.24; Fri, 3 Mar 2023 18:26:56 +0000 Received: from DM5PR1901MB2037.namprd19.prod.outlook.com ([fe80::e6d4:29f7:2077:bd69]) by DM5PR1901MB2037.namprd19.prod.outlook.com ([fe80::e6d4:29f7:2077:bd69%4]) with mapi id 15.20.6086.024; Fri, 3 Mar 2023 18:26:56 +0000 Message-ID: <2111304e-6a22-e767-f79b-c72cde42294b@ddn.com> Date: Fri, 3 Mar 2023 19:26:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [RFC PATCH 5/9] fuse: move fuse connection flags to the separate structure To: Alexander Mikhalitsyn , mszeredi@redhat.com Cc: Al Viro , Amir Goldstein , =?UTF-8?Q?St=c3=a9phane_Graber?= , Seth Forshee , Christian Brauner , Andrei Vagin , Pavel Tikhomirov , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, criu@openvz.org References: <20230220193754.470330-1-aleksandr.mikhalitsyn@canonical.com> <20230220193754.470330-6-aleksandr.mikhalitsyn@canonical.com> Content-Language: en-US From: Bernd Schubert In-Reply-To: <20230220193754.470330-6-aleksandr.mikhalitsyn@canonical.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO3P265CA0019.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:387::18) To DM5PR1901MB2037.namprd19.prod.outlook.com (2603:10b6:4:aa::29) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR1901MB2037:EE_|DM6PR19MB4214:EE_ X-MS-Office365-Filtering-Correlation-Id: baa4b04b-88a4-4a95-9915-08db1c14de22 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LW4LFb+8Wk0xfrSR7sy1SjlXGOHbePg/wezE1XQhr3cwlHEwwj/r8dhSlII7tJgKKYn/kQhqcUHMSaXyFkgzvcRfoa7N9lSbpR55AJFcVQ8Q2Z2BTxoZ1Ds4QnfbOSKzd4edKiKl2akUCbYH41jmkZXG58uMMoJYUBeWzX7Co0dhQN5wa3TdtM8E9RhcSGY4xBjBGn5acpg0GBOo/nfDLXghO8yHZA2Vgje+/sUWB6K1+aKht3+JlalkE2rGBncsZkT7cQnCQUTxPZ/2uWAuJ1mwIWgJQ3ptTOXmvf8QE823uG5IY1CU32jlXEMBC6paEQuUNyIQjBACVTFdotfbhzI/1/GhRzekc+2QiT0QHeONO/+17jA/kEL/BBBkcW9WeiNSkt0DHxW9HenlkEv2Jc7/ZdFdYUJ59gXy991pS8VltUJ+1SFChPrXSYF3EvodGxtNq/2wADFztA9yGWymK1lbKMADNo8Nd8bySVlyEyGL/U2GtdS6d7y50FK6DlNg366B42pXEYutMW1j6aKYAzpbSjx/+LBX/wESnCyqS4SsBN82OQzyDWKO+Ln8tnQn/z0y1REqilYW/YMBh0PNR2l3lzlWgcnnXiu3xL/JSisG09bmDN8IhHQOkIsnasaGuHpQGMl2x/C9YX3mxb11jgc4bPgkgqZxb59cDe9ET+IWXoqZYy5Trqt6ilLaaRMlZDGRpnIOYdj64MmAjbYTW+n/ooaYIGO364bkN5YUvRc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR1901MB2037.namprd19.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39850400004)(136003)(396003)(346002)(376002)(366004)(451199018)(31686004)(26005)(6486002)(54906003)(316002)(6512007)(38100700002)(31696002)(4326008)(36756003)(86362001)(4744005)(6506007)(2616005)(83380400001)(66946007)(8676002)(478600001)(5660300002)(2906002)(186003)(66556008)(6666004)(66476007)(53546011)(8936002)(41300700001)(7416002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NnB2SkdxVTF6RndQMnp1TTJNSmxEajB3N3NmZWVUeFFydX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8?B?d1A3TXBWcmVVVjE3MW8yK1d2ZWxuWkIzVy8ySHdMSGlLMjVQRWovd2xWdWdC?= =?utf-8?B?UHM0S05xNWxRUXM0NHU1MCs4cUs2Q21FYmJOdE1lQXRqVnllZUp3ekNtYVZL?= =?utf-8?B?MFVxb3JQREdJQmFqKzJHdzlBRVMxN1lka2lCMEtzSmJQaWRodXhocDJ1NUFG?= =?utf-8?B?WWljSVF3bkhKZDRYa3hsaXJlMzdqWi92ckMxUitKL3BqdEFkYXZQYWpXYnE3?= =?utf-8?B?SEZmNGhVNUxBdnJ0enhleUdSdEtSbGVuRzJ1d2p1dW1XTTRML1JyYUpBM3l5?= =?utf-8?Q?R7chjMhFstNJtjG65WQJwnCbF?= X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-Network-Message-Id: baa4b04b-88a4-4a95-9915-08db1c14de22 X-MS-Exchange-CrossTenant-AuthSource: DM5PR1901MB2037.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2023 18:26:56.0571 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tSMKp/gMdbBM8XrhGGKue7AKJUpBkvte13wnvKJZD6SGyJ44eb+jNJR5tvsrsnwrgFGGgDg5y4m1UGIOC0ukNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR19MB4214 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/20/23 20:37, Alexander Mikhalitsyn wrote: > Let's move all the fuse connection flags that can be safely zeroed > after connection reinitialization to the separate structure fuse_conn_flags. > > All of these flags values are calculated dynamically basing on > the userspace daemon capabilities (like no_open, no_flush) or on the > response for FUSE_INIT request. > From my point of view this makes the code a bit better readable, in general. [...] > }; > > +/** > + * A Fuse connection. > + * > + * This structure is created, when the root filesystem is mounted, and > + * is destroyed, when the client device is closed and the last > + * fuse_mount is destroyed. > + */ > +struct fuse_conn_flags { > + /** Do readahead asynchronously? Only set in INIT */ > + unsigned async_read:1; The comment does not match the struct?