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 5DEA2C636D3 for ; Fri, 3 Feb 2023 00:16:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232243AbjBCAQg (ORCPT ); Thu, 2 Feb 2023 19:16:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjBCAQe (ORCPT ); Thu, 2 Feb 2023 19:16:34 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A0152B08E for ; Thu, 2 Feb 2023 16:16:33 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id me3so10955919ejb.7 for ; Thu, 02 Feb 2023 16:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Smlwk6vADVM6jgfBM/hp9+5/KUdj3WFKGPaluLskhUU=; b=Px8JQj+8SaQhdNfFmOAM7vXPDFme8UFrV2rmuYXkmJBQKa8HORZE5PCgmqf42EAPFZ 44YX+BpWki+PChSX34nbFwxkjA9n9oQOAq4FwEOlUrDYTjXSWlbt8iRQtCah77qxPjLq f7DnHSrufLR5BDHXLoX72OXiIrqLrRhX1iFDc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Smlwk6vADVM6jgfBM/hp9+5/KUdj3WFKGPaluLskhUU=; b=Hh0WMUNiGeTgULZRjwBneVk+KO2LZiPbmUxCLHVyqXZKSGiUGileoCBIQTra/CN67J lJ1Mspz0jkhU1ru6tfY9nSfW0U7b34S7NyjvcLHKF8OkcBb0moLam67GFC16xxU0Up8w DmZC7ngBAJAp7i03vokMEiTLdfvdnhyKl4Dyu8TWbics9AC8k6gNDEz4mM8rk+0t/5bt XtYrPGtpBN0KL61iNzZeFcpn66EJnUxmWyLgqVeESrZ8Zf2unScb9F8stCDkADzihYOC aUCY9N1pQ511YosH91T3yI5mFRbg5CPYnYUmBtOAf88X9IXiy+bkCVGSa7JxuI4S79lT gXLQ== X-Gm-Message-State: AO0yUKVwhlea2FOGbj/gi+0x1FwI9Tb6hZIglfRfxFJmFuz2vMF/4TIn ZLsNfUSDIywYWxUEB61ascMtQDDdKM/JbXFPKirwWw== X-Google-Smtp-Source: AK7set8hOhxBUqeKGtNpnbYkKHATwbdn/OPXVJ+OkQ7zfmdxeGW4/4DrYecdAfeyGTpJdLhLG5oL5w== X-Received: by 2002:a17:906:eb01:b0:877:8a55:2a26 with SMTP id mb1-20020a170906eb0100b008778a552a26mr7834552ejb.60.1675383391464; Thu, 02 Feb 2023 16:16:31 -0800 (PST) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com. [209.85.218.48]) by smtp.gmail.com with ESMTPSA id o13-20020a17090611cd00b007b4bc423b41sm490086eja.190.2023.02.02.16.16.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Feb 2023 16:16:31 -0800 (PST) Received: by mail-ej1-f48.google.com with SMTP id ml19so11140259ejb.0 for ; Thu, 02 Feb 2023 16:16:30 -0800 (PST) X-Received: by 2002:a17:906:f109:b0:882:e1b7:a90b with SMTP id gv9-20020a170906f10900b00882e1b7a90bmr2320874ejb.187.1675383390454; Thu, 02 Feb 2023 16:16:30 -0800 (PST) MIME-Version: 1.0 References: <20230202232517.8695-1-michael.christie@oracle.com> <20230202232517.8695-4-michael.christie@oracle.com> In-Reply-To: <20230202232517.8695-4-michael.christie@oracle.com> From: Linus Torvalds Date: Thu, 2 Feb 2023 16:16:13 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v11 3/8] fork: add USER_WORKER flag to not dup/clone files To: Mike Christie Cc: hch@infradead.org, stefanha@redhat.com, jasowang@redhat.com, mst@redhat.com, sgarzare@redhat.com, virtualization@lists.linux-foundation.org, brauner@kernel.org, ebiederm@xmission.com, konrad.wilk@oracle.com, linux-kernel@vger.kernel.org, Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 2, 2023 at 3:25 PM Mike Christie wrote: > > - retval = copy_files(clone_flags, p); > + retval = copy_files(clone_flags, p, > + args->worker_flags & USER_WORKER_NO_FILES); Just to hit the previous email comment home, adding just another bitfield case would have made this patch simpler, and this would just be retval = copy_files(clone_flags, p, args->no_files); which seems more legible too. Linus