ubifs: remove unnecessary calls to set up directory key
authorEric Biggers <ebiggers@google.com>
Fri, 15 Mar 2019 20:54:32 +0000 (13:54 -0700)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 19:36:39 +0000 (21:36 +0200)
commitc64cda8a99135c584a1c61074e225aacdf31060f
treea3f5f4f091dcaf0cb79f59f86e43ef3a8a7fa61e
parent37624b58542fb9f2d9a70e6ea006ef8a5f66c30b
ubifs: remove unnecessary calls to set up directory key

In ubifs_unlink() and ubifs_rmdir(), remove the call to
fscrypt_get_encryption_info() that precedes fscrypt_setup_filename().
This call was unnecessary, because fscrypt_setup_filename() already
tries to set up the directory's encryption key.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/dir.c