fscrypt: introduce helper function for filename matching
authorEric Biggers <ebiggers@google.com>
Mon, 24 Apr 2017 17:00:10 +0000 (10:00 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 May 2017 15:44:37 +0000 (11:44 -0400)
commit17159420a6c18bb3515ff85598b5ccf1a572763d
tree562afc39b20e061cbdfaaf6e2db7854da95fbb45
parent6b06cdee81d68a8a829ad8e8d0f31d6836744af9
fscrypt: introduce helper function for filename matching

Introduce a helper function fscrypt_match_name() which tests whether a
fscrypt_name matches a directory entry.  Also clean up the magic numbers
and document things properly.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/fname.c
fs/crypto/fscrypt_private.h
include/linux/fscrypt_notsupp.h
include/linux/fscrypt_supp.h