Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2052890rwb; Fri, 28 Jul 2023 21:56:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGv/xLwp7ACyWtLglwEFSePnBNnDrKBXmmZE7Bot8mCP6+vcaLWRFoSyThFlWkvSDTPw5Bx X-Received: by 2002:a17:90a:eb12:b0:268:2d92:55d3 with SMTP id j18-20020a17090aeb1200b002682d9255d3mr3338050pjz.39.1690606598269; Fri, 28 Jul 2023 21:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690606598; cv=none; d=google.com; s=arc-20160816; b=0OSPEtakctmcNYscR19D4lRobbsWEsuAk6UVMnPGXHLqVuBrwYQ4tvKlNQIo03Lzrh SAlbtEd9J7JBx61nyswhCMtLTKeJW92oCAd5yS8cPoOwOgt8VP8SAODhHvZci9kanv/w /YF0Re79S3Q0EMIS0672hYm8EQ42nCCcFG1ZwmbFmOwKNHrnUz4h4feVt8oskaM3MhSQ XEIz8Uh6WlfAt5hDO8ZrUmwVQpOR/FarcGCwVUzB88vFODXTLZAtVyBx97/1oFX3KPZZ KCinKI9E80grscV7e7pPdyZTE8Z+pzkIk47PrteIw10627kPuGl9HhWelQ/HxK5H6KU5 OUZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W2Cm8TVs+K/RD3BiTajPfIBZkK47gghPIcLMMX97VHg=; fh=9ON23Fi2yRscNwyWTO/nquu1XTy5EppfaPLELdTbFAQ=; b=kYLaQUqzRbEOEtw/oo3WBldnZt6DlGlP4UPrFX2NwAaxv6Z7OFFAE2snJ0gWKEv+IA eK0jhEjaiF2fabrorPMGjTEx9PSf2qtOpMnql/epLDJ2HogLzkm160WOds+Zk5tGm0Nl F17birIeU98d6oIZuKW6+9AT+jLagjXxzzex7MgmBP6NbaMbTTvwqYZYRQfDtiB4cUKw DV9nYrUsEherXFjz4Mh3i84t1/mTxywxPE7V2I0UUbnXSMf2gnrAvt2Eadvv//dUSIB0 d3PVooOQAGiDInI4ix8UyRx31mwTmwTkN+tbXQspGJn2r6aT0M9aS9qbfB+l9mLWT0I7 Tk3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HzTepYHL; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a17090a34cd00b002634e08d484si5671861pjf.56.2023.07.28.21.56.13; Fri, 28 Jul 2023 21:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HzTepYHL; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbjG2ESO (ORCPT + 99 others); Sat, 29 Jul 2023 00:18:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjG2ESN (ORCPT ); Sat, 29 Jul 2023 00:18:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6CA420C; Fri, 28 Jul 2023 21:18:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D59AF608C4; Sat, 29 Jul 2023 04:18:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7580C433C7; Sat, 29 Jul 2023 04:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690604291; bh=KQBZTd1S0knxsGiSweS0mSJsa3IrgD8+KiGKrRwjDpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HzTepYHLCqjPnb04DG+lQ/wa+C7QCxmCzeepM4xWu7HFaFHnXwaqMArNTKsLWVTDf clYhanByTkW5HO+MBCicjRqObbYeuiIDjXz8nOWyUKhHhrUcEk0vmDjU3T/8QIpJAx FyFhIzFZzkaIpE1BKfAxqTOlzvdy3duJSmOf0DfIftTBjp6uMCBn1g28waTGOR0ffz X439aHHgq0bDLUjyA4+8Y/+cmbZzdZ/U4KUoDvz00xMswfnK64x16BHt+hVtjeg3uK y08JiKTf+0ZH2gfo/tLny4Wl41AU8Y5O5qiofOu0sY4U9tJ32b/F9+3oXNKHoj4Fdu 7zqOMC5HzOIjw== Date: Fri, 28 Jul 2023 21:18:09 -0700 From: Eric Biggers To: Gabriel Krisman Bertazi Cc: Christian Brauner , viro@zeniv.linux.org.uk, tytso@mit.edu, jaegeuk@kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Gabriel Krisman Bertazi Subject: Re: [PATCH v4 3/7] libfs: Validate negative dentries in case-insensitive directories Message-ID: <20230729041809.GA4171@sol.localdomain> References: <20230727172843.20542-1-krisman@suse.de> <20230727172843.20542-4-krisman@suse.de> <20230728-beckenrand-wahrlich-62d6b0505d68@brauner> <87r0os139h.fsf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r0os139h.fsf@suse.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Jul 28, 2023 at 11:09:46AM -0400, Gabriel Krisman Bertazi wrote: > Christian Brauner writes: > > > On Thu, Jul 27, 2023 at 01:28:39PM -0400, Gabriel Krisman Bertazi wrote: > > > > > Wouldn't it make sense to get rid of all this indentation? > > I'm ok with making this change. I'll wait for more reviews and Eric > before sending a new version with this done. > > Thanks! > Well, the issue is that with patch 4, all the 'return 1;' would need to change to 'return fscrypt_d_revalidate(dentry, flags);'. A helper function could be used, though, if you prefer: static int generic_ci_d_revalidate(struct dentry *dentry, const struct qstr *name, unsigned int flags) { if (!ci_d_revalidate(dentry, name, flags)) return 0; return fscrypt_d_revalidate(dentry, flags); } - Eric