Thread (22 messages) 22 messages, 3 authors, 2020-12-02

Re: [PATCH 2/9] f2fs: remove f2fs_dir_open()

From: Eric Biggers <ebiggers@kernel.org>
Date: 2020-12-01 23:00:50
Also in: linux-ext4, linux-f2fs-devel, linux-fscrypt

On Thu, Nov 26, 2020 at 03:04:55PM +0800, Chao Yu wrote:
On 2020/11/25 8:23, Eric Biggers wrote:
quoted
From: Eric Biggers <redacted>

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
quoted
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 <redacted>
Reviewed-by: Chao Yu <redacted>

Thanks,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help