diff options
| author | Eric Biggers <ebiggers@google.com> | 2017-05-22 18:14:06 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-07-21 12:38:23 +0200 |
| commit | 9f1cb8883f84b7c2d9935f2da104ea472c143e84 (patch) | |
| tree | b9f149923a5cff193e3eda819633d5edc4e16b35 /fs/crypto | |
| parent | cb258530efcbf7c6675467c42012a498e838d90d (diff) | |
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>
Diffstat (limited to 'fs/crypto')
| -rw-r--r-- | fs/crypto/fname.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/crypto/fname.c b/fs/crypto/fname.c index 17905ce0b..cef1d3e8c 100644 --- a/fs/crypto/fname.c +++ b/fs/crypto/fname.c @@ -453,12 +453,3 @@ errout: return ret; } EXPORT_SYMBOL(fscrypt_setup_filename); - -void fscrypt_free_filename(struct fscrypt_name *fname) -{ - kfree(fname->crypto_buf.name); - fname->crypto_buf.name = NULL; - fname->usr_fname = NULL; - fname->disk_name.name = NULL; -} -EXPORT_SYMBOL(fscrypt_free_filename); |
