OSDN Git Service

fscrypt: rename DCACHE_ENCRYPTED_NAME to DCACHE_NOKEY_NAME
authorEric Biggers <ebiggers@google.com>
Thu, 24 Sep 2020 04:26:24 +0000 (21:26 -0700)
committerEric Biggers <ebiggers@google.com>
Thu, 24 Sep 2020 04:29:49 +0000 (21:29 -0700)
commit501e43fbea468fa93c1dff0ee744e69303ef5a43
tree02dd7b1b1aa3fa2cf1a3555b9acad39eddc4c764
parent70fb2612aab62d47e03f82eaa7384a8d30ca175d
fscrypt: rename DCACHE_ENCRYPTED_NAME to DCACHE_NOKEY_NAME

Originally we used the term "encrypted name" or "ciphertext name" to
mean the encoded filename that is shown when an encrypted directory is
listed without its key.  But these terms are ambiguous since they also
mean the filename stored on-disk.  "Encrypted name" is especially
ambiguous since it could also be understood to mean "this filename is
encrypted on-disk", similar to "encrypted file".

So we've started calling these encoded names "no-key names" instead.

Therefore, rename DCACHE_ENCRYPTED_NAME to DCACHE_NOKEY_NAME to avoid
confusion about what this flag means.

Link: https://lore.kernel.org/r/20200924042624.98439-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/fname.c
fs/crypto/hooks.c
include/linux/dcache.h
include/linux/fscrypt.h