commit | 5d2b42ede71c9da0bf4248fd2d409918fb065b5f | [log] [tgz] |
---|---|---|
author | Shuoran Liu <liushuoran@huawei.com> | Thu Aug 25 20:42:09 2016 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Aug 29 18:31:16 2016 -0700 |
tree | 49b53989cc6dbf8f284df35dc07d0587ce643511 | |
parent | dfd02e4de1c5f40c268984254045d388ab0c3e74 [diff] |
f2fs: fix a bug when using namehash to locate dentry bucket In the following scenario, 1) we don't have the key and doing a lookup for encrypted file, 2) and the encrypted filename is big name we should use fname->hash as name hash value instead of what is calculated by fname->disk_name. Because in such case, fname->disk_name is empty. Signed-off-by: Shuoran Liu <liushuoran@huawei.com> Acked-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>