fscrypt: remove 'ci' parameter from fscrypt_put_encryption_info()
authorEric Biggers <ebiggers@google.com>
Fri, 12 Jan 2018 04:30:13 +0000 (23:30 -0500)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 10:35:03 +0000 (03:35 -0700)
commit4bcc4865feab13ca1cfb64a33e9d38723f134350
tree17ba44dc7929841f51c9718dab0412b5046bb0c8
parent69e5234f04b6933284cb5314c232a62ec5533c7e
fscrypt: remove 'ci' parameter from fscrypt_put_encryption_info()

fscrypt_put_encryption_info() is only called when evicting an inode, so
the 'struct fscrypt_info *ci' parameter is always NULL, and there cannot
be races with other threads.  This was cruft left over from the broken
key revocation code.  Remove the unused parameter and the cmpxchg().

Also remove the #ifdefs around the fscrypt_put_encryption_info() calls,
since fscrypt_notsupp.h defines a no-op stub for it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/keyinfo.c
fs/ext4/super.c
fs/f2fs/inode.c
fs/ubifs/super.c
include/linux/fscrypt_notsupp.h
include/linux/fscrypt_supp.h