fscrypt: inline fscrypt_free_filename()
authorEric Biggers <ebiggers@google.com>
Tue, 23 May 2017 01:14:06 +0000 (18:14 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 Jun 2017 23:59:08 +0000 (19:59 -0400)
commit27e47a6342e21b005a15a1f0afea0b6f179e0a71
treecd7a921261cfc3fef680735ec00328927daacaff
parent3c2993b8c6143d8a5793746a54eba8f86f95240f
fscrypt: inline fscrypt_free_filename()

fscrypt_free_filename() only needs to do a kfree() of crypto_buf.name,
which works well as an inline function.  We can skip setting the various
pointers to NULL, since no user cares about it (the name is always freed
just before it goes out of scope).

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: David Gstir <david@sigma-star.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/fname.c
include/linux/fscrypt_supp.h