]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Jan 2018 04:30:13 +0000 (23:30 -0500)
commit02de757fc67678e5c7fcbfc2eded74dc0ea48bc7
tree680d6fad2a6f7a7d6638e828b8ea2542beea4509
parent6c2021af0da77e00626f01e57cae03a3e3c3f881
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