OSDN Git Service

fscrypt: inline fscrypt_free_filename()
authorEric Biggers <ebiggers@google.com>
Tue, 23 May 2017 01:14:06 +0000 (18:14 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 14 Jul 2017 00:52:43 +0000 (17:52 -0700)
commitf6ba8b4893da189199657b0db85705ee247d9c36
tree58dd96582c918e59e38e69ef5377415c220aa5c5
parent972aaba68e97f8eabdfcfe594a9b78d604ee613f
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