Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp977260rdd; Wed, 10 Jan 2024 05:19:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4VYTWgEKASnTJYswROM/j6Gk0sD4cP9jyqK87Z/f2ZcAc+LbtkyrEnl4horB69wMF3e65 X-Received: by 2002:ac8:57d1:0:b0:429:9b33:ae57 with SMTP id w17-20020ac857d1000000b004299b33ae57mr90817qta.3.1704892773522; Wed, 10 Jan 2024 05:19:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704892773; cv=none; d=google.com; s=arc-20160816; b=ADNge2diSacv/eQpayuzHQ5osErjNLPfFvvOmopcUqCBruhTZ039orl4+rTE0rrisE PBHowny1P2l7P3Ld3aO3rtWyz0MbxzYbO6c9AgZGcLtU3ZLlb5X7JfDTjMgU2K9UnH0y eSE6HV9gESIRi3tSdMOps04ilUxn/iwSizqHg7b6/8t8XhyRmjLm9ByE1jnqEVtEagXR crBQwW/WVJLkAusm1QRyVdQ0BNlWV2TzLCo9Zb8siZxQbGcLhl/nqvyElBvQ5VCIJv1u j4Gw640fKMaEvK/54R0KHNX42geP+IGnfV9fYbC8UNFFqI+v8bE8RmaNw5AXJNJ/9F6q d+fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=IIz/NtHDYhF8vmwCvHYAt/tM+z1YtzdZW5BHQmDl2FM=; fh=hc5NwU7Ml+W3pORj6a7XlX1Qo6HXZ3jvvQ9Rhh8OwdE=; b=LySC9XG+TsuyZxykKN3hG2ImX8IJNlIiORCIWnKjaKiuVgUF7hLIP4L2NbXq6Q8O2O ulcaqNQb1tCkvvtK64s1MlDhX13D16m24PYnEoPHdKVD3RIrKlwx49IGDWHYwXBkLTY3 ubriYib+cWXEG4EBR341Gfp/7RP6/NdSeSR5VbdWchCYjhRKH7/O8fhVC1ni6/5tv7SG LjQwnGhIKVYy6sx/iLju6YwovVhZtEKYwnAYMAOIn7JEhv+7HYDzs/k2OwnMPgA56fSM cRKKjDUA0CWMZ+9v2iItriX8PN9HjsYLPkix1NsteYQskY6F9Bm5QtGvkoCvD6aEAxa1 3cXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=Mz+pWCaQ; spf=pass (google.com: domain of linux-kernel+bounces-22221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h2-20020ac87d42000000b0042540184032si4239911qtb.336.2024.01.10.05.19.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 05:19:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=Mz+pWCaQ; spf=pass (google.com: domain of linux-kernel+bounces-22221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A6871C21B0F for ; Wed, 10 Jan 2024 13:19:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 651D3487BD; Wed, 10 Jan 2024 13:19:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mz+pWCaQ" Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 485004878D; Wed, 10 Jan 2024 13:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-429b7910697so2824201cf.1; Wed, 10 Jan 2024 05:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704892759; x=1705497559; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=liSzDRZehByCujutdLomxYVsOIIXj62EeJs6zgUIbJ8=; b=Mz+pWCaQc/2MCe71Ji4K1RPrdSGnL350uFqBcCKfWHicrQJvpCaqhVvWzn86eRMoeA ejAqeKvbvh0w1nU6BayMuq9k2P+BHiUQl87cHjhlmE+pyslPkxlebwCWKUaX6ftQEWV+ r/WN4Ff7fhySvTD7aT8mIOB1xb6DBHc6Ld2fwota6ZfHVviFYXv8pZ/RaP7Zhp3UXEmb fURKIdI9fdp2e9ZQozI/Oopnf2dwiGcUBUWOsPbZvBG2ynvh2+/QxZfH2kM+0B865TD1 qDiE54hXpa1FeMnGP0NsEnoIBBWmDb0rguaO15QeNIzWc839Lq8dSdZLxwXbwCS9o/Oz 3XIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704892759; x=1705497559; h=content-transfer-encoding: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=liSzDRZehByCujutdLomxYVsOIIXj62EeJs6zgUIbJ8=; b=Hceex1st0Ojyu7WtA/spyz1e7Gm8sZ35H3kD3DS+Za574F/qxIzZKX91dq06ZufNgB mFdKf2hNPWUw3k6K5BGfJPSq4Qe6Cq5uToZlBwe2H/2+7vcYp9fRMlNi6H9Uq2VFWFML oS1CRO1a8H47PaAtgPHZtH3yhx7wHLlwVp+LadRKXhmjlK6rPYgcOOiNFNFIuVBoKo6I xwyqcBdV2qc3/ZYW2j7S+BUm9ljeWcfjuPYJsRKNWWquqglAqtV8bk3VczCu2/7R3Gi0 Rm/uIuPJCRBvi+2V9fxFHOLW0M+fVo1ovPNamhkWuucJQn2gk+uQQDsEeRyXeXg77Ald DM0Q== X-Gm-Message-State: AOJu0Yz+5NDfERzf2sr6Noc/EMD2upz9uG4Q925+9QrQBNv/dNo2Ychv PaumJ1+kukvFZUhhfga9to5H0tTBtD9069slQyQ= X-Received: by 2002:a05:6214:ac9:b0:67f:59a8:5d7f with SMTP id g9-20020a0562140ac900b0067f59a85d7fmr75196qvi.44.1704892759178; Wed, 10 Jan 2024 05:19:19 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <6cbcf640-55e5-2f11-4a09-716fe681c0d2@web.de> <87b65f8e-abde-2aff-4da8-df6e0b464677@web.de> <05d334af-1a0f-4498-b57d-36a783288f07@web.de> In-Reply-To: From: Amir Goldstein Date: Wed, 10 Jan 2024 15:19:07 +0200 Message-ID: Subject: Re: [0/4] overlayfs: Adjustments for ovl_fill_super() To: Markus Elfring Cc: linux-unionfs@vger.kernel.org, kernel-janitors@vger.kernel.org, Miklos Szeredi , cocci@inria.fr, LKML , Christian Brauner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 10, 2024 at 3:01=E2=80=AFPM Markus Elfring wrote: > > >> See also: > >> https://lore.kernel.org/cocci/87b65f8e-abde-2aff-4da8-df6e0b464677@web= de/ > >> https://sympa.inria.fr/sympa/arc/cocci/2023-03/msg00115.html > > > > I will queue cleanup patches 1-2, > > Thanks for this positive feedback. Sorry, these patches do not apply to master branch and patch 1 is no longer correct in master branch and the new mount api changes. > > > > but I do not like patches 3/4 and 4/4= . > > I do not think that they make the code better to read or maintain. > > I would appreciate if the details for such change reluctance can be clari= fied better. patch 3: I much rather a single error handling label that takes care of all the cleanups - it is harder to make mistakes and jump to the wrong label when adding new error conditions. patch 4: Overlayfs uses this coding style all over the place err =3D -ENOMEM; ofs->creator_cred =3D cred =3D prepare_creds(); if (!cred) goto out_free_ofs; I don't see the benefit in making err =3D -ENOMEM conditional. I don't see the style after your patch as clearly better than before. Thanks, Amir.