]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix a bug when using namehash to locate dentry bucket
authorShuoran Liu <liushuoran@huawei.com>
Thu, 25 Aug 2016 12:42:09 +0000 (20:42 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 30 Aug 2016 01:31:16 +0000 (18:31 -0700)
commita58e00e59311ecc32cf1edf33c3f7d15ca866401
tree49b53989cc6dbf8f284df35dc07d0587ce643511
parentbc834c38f95eeac9038ff8e78e900789ba670463
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>
fs/f2fs/dir.c