diff options
author | Eric Biggers <ebiggers@google.com> | 2018-01-11 23:30:13 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-01-11 23:30:13 -0500 |
commit | 3d204e24d452f96704f5feb83f6b7654245defc9 (patch) | |
tree | 680d6fad2a6f7a7d6638e828b8ea2542beea4509 /include/linux/fscrypt_notsupp.h | |
parent | 2f46a2bc2694877332f9c1ff47acb7fa117e168a (diff) | |
download | linux-stable-3d204e24d452f96704f5feb83f6b7654245defc9.tar.gz linux-stable-3d204e24d452f96704f5feb83f6b7654245defc9.tar.bz2 linux-stable-3d204e24d452f96704f5feb83f6b7654245defc9.zip |
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>
Diffstat (limited to 'include/linux/fscrypt_notsupp.h')
-rw-r--r-- | include/linux/fscrypt_notsupp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/fscrypt_notsupp.h b/include/linux/fscrypt_notsupp.h index 342eb97e0476..44b50c04bae9 100644 --- a/include/linux/fscrypt_notsupp.h +++ b/include/linux/fscrypt_notsupp.h @@ -105,8 +105,7 @@ static inline int fscrypt_get_encryption_info(struct inode *inode) return -EOPNOTSUPP; } -static inline void fscrypt_put_encryption_info(struct inode *inode, - struct fscrypt_info *ci) +static inline void fscrypt_put_encryption_info(struct inode *inode) { return; } |