]> git.baikalelectronics.ru Git - kernel.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)
commit0031d0c34dd758b82c57c31201586d2b1f649d2e
tree3d0ecb2c81a38689f21b9f056938cbdaaf6156ed
parent72339f3f27fcd78a0b0a8944c1ad9882bfa8fb5a
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