]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fscrypt: drop inode argument from fscrypt_get_ctx()
authorEric Biggers <ebiggers@google.com>
Mon, 18 Mar 2019 17:23:33 +0000 (10:23 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 16 Apr 2019 22:37:25 +0000 (18:37 -0400)
commitcd0265fcd2eae9004c68ef2123a9dac0dc5a666a
tree3d0ecb2c81a38689f21b9f056938cbdaaf6156ed
parentdc4060a5dc2557e6b5aa813bf5b73677299d62d2
fscrypt: drop inode argument from fscrypt_get_ctx()

The only reason the inode is being passed to fscrypt_get_ctx() is to
verify that the encryption key is available.  However, all callers
already ensure this because if we get as far as trying to do I/O to an
encrypted file without the key, there's already a bug.

Therefore, remove this unnecessary argument.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/bio.c
fs/crypto/crypto.c
fs/ext4/readpage.c
include/linux/fscrypt.h