ext4 crypto: simplify and speed up filename encryption
authorTheodore Ts'o <tytso@mit.edu>
Fri, 1 May 2015 20:56:45 +0000 (16:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 1 May 2015 20:56:45 +0000 (16:56 -0400)
commit5de0b4d0cd153c471640b13aae6ae6d18d0a4603
treeea42bad982e25f1c880e363b55e8d1ff82e773fe
parent6ddb2447846a8ece111e316a2863c2355023682d
ext4 crypto: simplify and speed up filename encryption

Avoid using SHA-1 when calculating the user-visible filename when the
encryption key is available, and avoid decrypting lots of filenames
when searching for a directory entry in a directory block.

Change-Id: If4655f144784978ba0305b597bfa1c8d7bb69e63
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto_fname.c
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/namei.c
fs/ext4/symlink.c