Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp423420pxu; Tue, 1 Dec 2020 15:01:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+bRE0U/EQtvh7hgwMoS7U8hP572L51/WEpnuRCYcJFG55Vg8SY5OhxyGC+AkhdknA+Q+7 X-Received: by 2002:a17:906:3ac2:: with SMTP id z2mr5152140ejd.26.1606863685682; Tue, 01 Dec 2020 15:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606863685; cv=none; d=google.com; s=arc-20160816; b=wn66yo1rp5U1G6UajnkMP0i7PGQXhUTM20ZQNPmHdWK46LTVIDHQkByhtNdKWVpIyW CgiengM0vcMFEa0gBqBRDtjgr716Lh7ZjkODNUz1mNJ4d/ptqS7TAci5uagsF0MWqUfp jBwqlLHDmEv4yPGaspA/REP1ETx6L2stb8zQC98dzVFcYaaDuL2+Snonk24uyVvdguzo GiCWxp/BFK+8XY/mtdplnG8kxjhN6LoCwChNlloT4HE2C/KZaPh+5Mp/qSZjcpXup3wv 2kVlPBqtl5HCQJBYtdXURGpYALIgDfMMybTxXSYP7NJqyyCcUkw7LWkizNEedLImME7N /seA== 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:dkim-signature:date; bh=pSwE3taYv/LHvk8a1sdZNTJq8hhDztSU1+v6lZM48B4=; b=dvbIKsMUXKMRRBV2SbBc3jz7tCCekHMohj4kmaIS+gJEfrSDy+vAxrtbL0XZ34EjIQ Eiqmwt8FRRgG+J51iBIEVFMrSJ2y4WRgpqBKPDV6AbelvE+f04oeK1NvnieE6BsovGPB 9Fk3UJPnUYrEpUVAg2ccu9v2MYVke8uJGHIZ8J7EJZ6DIICy39M1vOwoolwi6+SeXuSp U2Lyv9jY8ZAnGlhjb1OFU65why7AC4zCDcPrfCiKCvTtAOER7xeBuMY4v5baZA2EaElr /wZV7em7+FbxP+fyPD+TPVruyvtXm/2m0O8AuWhfZDytVVGzjfD3GoNANhw+7qw9fgs+ doIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MfiWeMWu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si839377ejd.304.2020.12.01.15.00.51; Tue, 01 Dec 2020 15:01:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MfiWeMWu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 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 S1726486AbgLAXAt (ORCPT + 99 others); Tue, 1 Dec 2020 18:00:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:45700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgLAXAs (ORCPT ); Tue, 1 Dec 2020 18:00:48 -0500 Date: Tue, 1 Dec 2020 15:00:06 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606863608; bh=UfPQWdK3xBzO1ApIT0Gn7pd2KneFS4j8rVtIyl7vrbg=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=MfiWeMWuaKPYMaaNv9SarNLRpZv08vfHzR572Es3sRYwsmPjO71SF5djmfQppon1c D6snuuoylEaT+4eMUrBNlzy1IIRX679LmvlxeGbnhmZknXKzg8u4+teHK7CsizAs+6 ge14TfRlVCJUZjbOHdANYPfd3CGZTIgupPhJoVtU= From: Eric Biggers To: Chao Yu Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/9] f2fs: remove f2fs_dir_open() Message-ID: References: <20201125002336.274045-1-ebiggers@kernel.org> <20201125002336.274045-3-ebiggers@kernel.org> <9522461b-b854-76ac-29c7-160f0f078823@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9522461b-b854-76ac-29c7-160f0f078823@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Nov 26, 2020 at 03:04:55PM +0800, Chao Yu wrote: > On 2020/11/25 8:23, Eric Biggers wrote: > > From: Eric Biggers > > > > Since encrypted directories can be opened without their encryption key > > being available, and each readdir tries to set up the key, trying to set > > readdir -> readdir/lookup? Yes, ->lookup() tries to set up the key too. It's different because ->lookup() doesn't require that the directory be open. But I suppose that's another reason why setting up the directory's key in ->open() isn't useful. I'll add something about that. - Eric > > > up the key in ->open() too isn't really useful. > > > > Just remove it so that directories don't need an ->open() method > > anymore, and so that we eliminate a use of fscrypt_get_encryption_info() > > (which I'd like to stop exporting to filesystems). > > > > Signed-off-by: Eric Biggers > > Reviewed-by: Chao Yu > > Thanks,