fscrypt: update comment for do_remove_key()
authorEric Biggers <ebiggers@google.com>
Wed, 6 Dec 2023 00:21:27 +0000 (16:21 -0800)
committerEric Biggers <ebiggers@google.com>
Sat, 9 Dec 2023 20:38:16 +0000 (12:38 -0800)
Adjust a comment that was missed during commit 15baf55481de
("fscrypt: track master key presence separately from secret").

Link: https://lore.kernel.org/r/20231206002127.14790-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/keyring.c

index f34a9b0b9e9227ab0bbeec79c187c2f5a9d0d19e..0edf0b58daa764338684aeb0623bd9c95d65d6f2 100644 (file)
@@ -1002,9 +1002,9 @@ static int try_to_lock_encrypted_files(struct super_block *sb,
  * FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS (all_users=true) always removes the
  * key itself.
  *
- * To "remove the key itself", first we wipe the actual master key secret, so
- * that no more inodes can be unlocked with it.  Then we try to evict all cached
- * inodes that had been unlocked with the key.
+ * To "remove the key itself", first we transition the key to the "incompletely
+ * removed" state, so that no more inodes can be unlocked with it.  Then we try
+ * to evict all cached inodes that had been unlocked with the key.
  *
  * If all inodes were evicted, then we unlink the fscrypt_master_key from the
  * keyring.  Otherwise it remains in the keyring in the "incompletely removed"