fscrypt: pass super_block to fscrypt_put_master_key_activeref()
authorEric Biggers <ebiggers@google.com>
Thu, 10 Nov 2022 08:29:42 +0000 (00:29 -0800)
committerEric Biggers <ebiggers@google.com>
Wed, 16 Nov 2022 01:19:29 +0000 (17:19 -0800)
commit02aef4225258fa6d022ce9040716aeecc3afc521
tree1aaedc1d1e4c5f19f6b847907d78c1dc0bd657b1
parentf0c4d9fc9cc9462659728d168387191387e903cc
fscrypt: pass super_block to fscrypt_put_master_key_activeref()

As this code confused Linus [1], pass the super_block as an argument to
fscrypt_put_master_key_activeref().  This removes the need to have the
back-pointer ->mk_sb, so remove that.

[1] https://lore.kernel.org/linux-fscrypt/CAHk-=wgud4Bc_um+htgfagYpZAnOoCb3NUoW67hc9LhOKsMtJg@mail.gmail.com

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20221110082942.351615-1-ebiggers@kernel.org
fs/crypto/fscrypt_private.h
fs/crypto/keyring.c
fs/crypto/keysetup.c