Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1840061iob; Sat, 14 May 2022 23:43:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK96gl7Z0/GbNxPkPvv323mHGXMaWbVRNwU0zRaK50trQUc6IkqC+FrnwApj1Id9kz6LMS X-Received: by 2002:a05:600c:19cc:b0:394:8dc2:a23b with SMTP id u12-20020a05600c19cc00b003948dc2a23bmr21886848wmq.182.1652596992707; Sat, 14 May 2022 23:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652596992; cv=none; d=google.com; s=arc-20160816; b=SmZcXTkpdeUa3KJuwyBjYw3gwBpXjr61MeyYBL3ValVB/1tofOtLrtfOKbnpvOevkq NnoL0jC/jOqGtWLkqe/S248dUn1tbztHz+PzYywkwVnvcSaPPRwt4vgzkHOlTFxJgZ+y 9ndMDpc/N7E5IJtKrKcB3bcHJMmNcNpe0cE3Dh37Oqx3Vun6jGg4JhRk9NsndCeO/Hsv uMO85G0QZl6hiQYM2pW58ubWuEMxRNY2POC8dyvYViqRpGJVWimJ29Cf5amuYZIDZkMi e3gIg3Pf+4w6msoRbji1r2g6Em+k1m0uRJavOkgXUFvUWMDjq1UeR2NgbcXFYhEPkpPX JtsA== 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=GMvKqZE/o42rCp71Di1k/rccnb5+5sI5P1y+ZV/ra5g=; b=qFR+gscwBFn+0xg0an4O67FNLE4lA5KH61xfQ5TmsIrzwJV60pkQDKaZvmnYDFpqWZ JVVZ7zh39ugtZFO821BZY2vM2tAb3Ye9K7yDy9i1DZH/0nTtuf22KEWvdZDj2FpGeZUr VjyQqyMFatJYwy8LXeStoUXm6R2MQ2J5W3MlHQfEuCBMvsR70vgyxPnKRxjnWP9LHVLl rUOe9QPHROHwTIHBgc31QRyDjj8ltHXc1YDV7/HAOhcnLDHX2taJ+FGZn0H5/JtPKbWE h8+Ctm4aiOmXSOBw7GhGlHkRHeRdhrkFWWUZU3Y1TJioXhDUnOE/gFlJfgJQdVTpr5wg M3lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=irSbRVBH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a0560001acb00b002041ca7b788si8723652wry.690.2022.05.14.23.42.47; Sat, 14 May 2022 23:43:12 -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=@gmail.com header.s=20210112 header.b=irSbRVBH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235545AbiEOEtf (ORCPT + 99 others); Sun, 15 May 2022 00:49:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235540AbiEOEte (ORCPT ); Sun, 15 May 2022 00:49:34 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEAD9655D; Sat, 14 May 2022 21:49:31 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id c14so11218284pfn.2; Sat, 14 May 2022 21:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GMvKqZE/o42rCp71Di1k/rccnb5+5sI5P1y+ZV/ra5g=; b=irSbRVBH1tkN1riCzpXSH0SH94U8V8NjmEgM3pGHK5u/Jqd0ISw1UBvmo40gkooV31 yBwLq0KNjkEomRtFrlreKMLjlAIy9QLWOnf6Ug276ZTUvUkh6gsJ6igyyWOUxM+jYtRr 4J0+z6jzSqLoAjD+lWKnCc6izhLnEg1IZc+eYGMJaU4xiTQyykKzplTGVnQ4aMJ0TU2q cUsKqn0Cy5rc3DOFYxJX5YDF9Bspt6FPnxJGjealISAqY9XVZ7cpJ6Ic59u39Vuw6ogj xlhvoRMSLLI2SGS0XIIhMMSLD6EiRta6KB6HpB6nMNRJbUMgSASdQ702tN5w/34P89eY JL5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GMvKqZE/o42rCp71Di1k/rccnb5+5sI5P1y+ZV/ra5g=; b=z0Qkg58xSWUsuemSqMBzs/BXMteDQOeM8Q2AioCldcZMUUV7yF9E4Ha0Bx9kHrlM/p PY3j5dXzpokHfH9RqBZ2uBS/AeWqB6E1jCujDFNQxMtZzCaSajIApU12z1GZ82lUn4J7 f+R+u7sg0fa++X8spzfDy3zOk6iA3mBNKs33iPRK0LucSxyghluEiqGJ0yyShSjC5nlH U8yW6+GYEk3OGEFo0ii3/zkQs7CZ/cYjj3Vi649AdU+vIKi87cijauByxKnNF6y4+PSs hJSXOjB6w/ITR4wEUN0zsPGJe5z4aL7V30X/cRdj9Ppz0+9Ma+PFQZO0F3F2vq0726q8 oBRg== X-Gm-Message-State: AOAM531VqhK3p2NVDNa60+YdVikrXBH8+4gXb/lK+Cgrko7CalHaeKsx 4YZv9AwwUlLWKMbKPBqu55c= X-Received: by 2002:a65:6b8e:0:b0:39d:6760:1cd5 with SMTP id d14-20020a656b8e000000b0039d67601cd5mr10398220pgw.379.1652590171157; Sat, 14 May 2022 21:49:31 -0700 (PDT) Received: from localhost ([2406:7400:63:532d:c4bb:97f7:b03d:2c53]) by smtp.gmail.com with ESMTPSA id w8-20020a1709029a8800b0015e8d4eb23asm4458425plp.132.2022.05.14.21.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 21:49:30 -0700 (PDT) Date: Sun, 15 May 2022 10:19:26 +0530 From: Ritesh Harjani To: Eric Biggers Cc: linux-ext4@vger.kernel.org, linux-fscrypt@vger.kernel.org, Theodore Ts'o , Jan Kara Subject: Re: [PATCHv2 2/3] ext4: Cleanup function defs from ext4.h into crypto.c Message-ID: <20220515044926.l2dg2jh7i3ujkmsc@riteshh-domain> References: <4120e61a1f68c225eb7a27a7a529fd0847270010.1652539361.git.ritesh.list@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 22/05/14 08:40PM, Eric Biggers wrote: > On Sat, May 14, 2022 at 10:52:47PM +0530, Ritesh Harjani wrote: > > diff --git a/fs/ext4/crypto.c b/fs/ext4/crypto.c > [...] > > +int ext4_fname_setup_filename(struct inode *dir, const struct qstr *iname, > > + int lookup, struct ext4_filename *fname) > > +{ > [...] > > diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h > [...] > > +int ext4_fname_setup_filename(struct inode *dir, > > + const struct qstr *iname, int lookup, > > + struct ext4_filename *fname); > > Very minor nit: the above declaration can be formatted on 2 lines, the same as > the definition. Thanks for spotting. I will make the change. > > Otherwise this patch looks fine. I think that filename handling in ext4 in > general is still greatly in need of some cleanups, considering that ext4 now has > to support all combinations of encryption and casefolding. f2fs does it in a > somewhat cleaner way, IMO. And it's possible that would lead us down a slightly > different path. But this is an improvement for now. Some examples please which you posibly have in mind which should help in cleanup ext4's filename handling code. I can get back to it after completing some other items in my todo list. > > Reviewed-by: Eric Biggers Thanks!! -ritesh