summaryrefslogtreecommitdiff
path: root/fs/crypto/keyring.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-09-16 21:11:28 -0700
committerEric Biggers <ebiggers@google.com>2020-09-22 06:48:36 -0700
commit4c030fa8870e9f0c53bcb91c607476ce7a4d6f2a (patch)
tree1b95290d378b9358cec7cf2ed70385b77c8b282a /fs/crypto/keyring.c
parente075b6901047cd4c70b93cfcbe5f67dbc5741fb6 (diff)
ubifs: use fscrypt_prepare_new_inode() and fscrypt_set_context()
Convert ubifs to use the new functions fscrypt_prepare_new_inode() and fscrypt_set_context(). Unlike ext4 and f2fs, this doesn't appear to fix any deadlock bug. But it does shorten the code slightly and get all filesystems using the same helper functions, so that fscrypt_inherit_context() can be removed. It also fixes an incorrect error code where ubifs returned EPERM instead of the expected ENOKEY. Link: https://lore.kernel.org/r/20200917041136.178600-6-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/crypto/keyring.c')
0 files changed, 0 insertions, 0 deletions