Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1229381pxb; Wed, 10 Feb 2021 03:28:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRitidH8CKZXNX+/8ovt8CjdVlgJFntk1Dn+/OjhEyJy0ZSsoQ4UBF8kFfavR34sLt2EqN X-Received: by 2002:a50:c403:: with SMTP id v3mr2664744edf.217.1612956528556; Wed, 10 Feb 2021 03:28:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612956528; cv=none; d=google.com; s=arc-20160816; b=n4Q3ILva0M3VvGEbwo5QuE3lMoSZvmszYKd6i+qcXH9COy+LQSYdJF8o3ca70hx/DH ssp2G5gRrVhFsn4I4awy5VCIJ7EvsODENCwVjw8UJZLyf6Ig2oVpMiRw2W/LLbm9uNl4 RCNdMEPsH7jLfduXjGD2YhfSZTSkJ6rEBcJp+oxHKP+tnopIXKNTh3r12t20BRWHTF6N qYsBD493BJn0Na1xmzsD7iOLJTWlmNWIjCbD4/UUGuzprK17z2kdAD2FCIbX7a21+oIS WtHFH7A7Uw27lel0EMQeFsXWsDb4wOWKAFap1MkW1SVYRXBVvD08gTnvj/f8gH2QrFyC 58gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KesY18AcWLGUy1+xAu93YHQU7oPPXOAxrMzYm03zej0=; b=hscw/wspp65AzVh8/9TldkmZVRLhFuWhqjM3Ql5Ilr2/I0G+C9klsKMwSnTSjCT2Vk tO1aABV99Y9qtUKvmTwrDk99+waRRKvVWJ5Soo8FriCzViI39UGltXYPzn0VHr2i8ZZE iLHRXdKoXw7vzrrQIXjfgwLxK7Lhm3isfr+mLchnZw3znwS84WpLUuivmqG21AkOPirF WWFR3jOx/nMnNpJIgp65vwSZS71ExAZqvc41GwUtSA2+H8E2HDvl8qQxkC+E0s86faIv 28N1v0LFvpAM50xSlMqYizB2sRtuDY0Qjdu0/70NvZBxglxkPKnlMCrK2Gef1FLZydjH TFJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=MKsFyk7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si1352011edi.81.2021.02.10.03.28.25; Wed, 10 Feb 2021 03:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=MKsFyk7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbhBJL0s (ORCPT + 99 others); Wed, 10 Feb 2021 06:26:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbhBJLQu (ORCPT ); Wed, 10 Feb 2021 06:16:50 -0500 Received: from mail-ua1-x92a.google.com (mail-ua1-x92a.google.com [IPv6:2607:f8b0:4864:20::92a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41D4CC06174A for ; Wed, 10 Feb 2021 03:16:32 -0800 (PST) Received: by mail-ua1-x92a.google.com with SMTP id v17so455315uat.0 for ; Wed, 10 Feb 2021 03:16:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KesY18AcWLGUy1+xAu93YHQU7oPPXOAxrMzYm03zej0=; b=MKsFyk7FCs5EVbtBRB4+bpYnfoOa7GQDvT62yJUnSuDW1Y3ay929Yc/0yEAnGtRnOP tbfBvt2jXZEMHBFGaQICQVpcJ3ahkVX1GlDnykXyOKd5M9CYD9sXJQvjPyQy6fpFS9gj DHcEvppD4kEh36ucyTSaIZ4QR5Gyjt1ENqkg0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KesY18AcWLGUy1+xAu93YHQU7oPPXOAxrMzYm03zej0=; b=eoytP7Wyn5KPBrCQoOza6bdbGrebdl2SV2JuFYDhT+ZxhPB2dJQ5Y7MMy283bLJ1g5 Is36N7A3CuaeQqL7TRDLAuFDkf2b08X5ed2ZxXW77z51Cl51Kqv+Yu8LrE21RsF7Vywl 96ZflAwJVGG+02Zy/ckChWbDannXWiCan3P/USvxDmnh5F7mkLK7fnkfeq8ep8yrl/Gh BgQJmxbxod4LFYK/PrcSFdf/69RzOdgXhXUsNfV7YdAYn/1rskRWN0XdC1LVlD4OuUwm DkCaa3MwV1CiBNQjwuktL7nY8o+UgL12Jb5LF5KZ9udsY5AMQSwnc89y86H64ienTVn/ r4nw== X-Gm-Message-State: AOAM530lTYQQlM/P5rR+IyEUwxCWae5C0cIZJ9YW/H5tODBWUxzsmWU0 LzS/B3bHglHmnec3CD8289QIdwU9XNQTCzRdylD7kQ== X-Received: by 2002:ab0:3c91:: with SMTP id a17mr1253415uax.9.1612955791144; Wed, 10 Feb 2021 03:16:31 -0800 (PST) MIME-Version: 1.0 References: <20210124232007.21639-1-richard@nod.at> <563952295.378372.1612881357746.JavaMail.zimbra@nod.at> <1923896038.379134.1612901174023.JavaMail.zimbra@nod.at> In-Reply-To: From: Miklos Szeredi Date: Wed, 10 Feb 2021 12:16:20 +0100 Message-ID: Subject: Re: [PATCH 0/8] MUSE: Userspace backed MTD v3 To: Richard Weinberger Cc: Miquel Raynal , Vignesh Raghavendra , Boris Brezillon , Ron Minnich , sven , linux-kernel , linux-mtd , fuse-devel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 11:12 AM Miklos Szeredi wrote: > But this is just a start. From the big structures still left in > CUSE only uses the following fields: > > fc: .minor, max_read, max_write, rcu, release, initialized, num_waiting > fm: .fc > ff: .fm > fud: .fc > > Dealing with the last 3 is trivial: create and alloc function for the > fm, and create accessor functions for the accessed fields. > > Dealing with fc properly is probably a bit more involved, but does not > seem to be too compex at first glance. > > Do you want to take a stab at cleaning this up further? On second thought, I'll finish this off, since I know the internal API better. Thanks, Miklos