exfat: optimize dir-cache
authorTetsuhiro Kohada <kohada.tetsuhiro@dc.mitsubishielectric.co.jp>
Wed, 20 May 2020 07:56:41 +0000 (16:56 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 9 Jun 2020 07:49:05 +0000 (16:49 +0900)
commit943af1fdacfebe4ff13430655abc460a5e1072f7
treef11c323bba0aae808b76cc1a9cbedf107faeddd0
parented0f84d30ba65f44bed2739572c7ab0fdeed4004
exfat: optimize dir-cache

Optimize directory access based on exfat_entry_set_cache.
 - Hold bh instead of copied d-entry.
 - Modify bh->data directly instead of the copied d-entry.
 - Write back the retained bh instead of rescanning the d-entry-set.
And
 - Remove unused cache related definitions.

Signed-off-by: Tetsuhiro Kohada <kohada.tetsuhiro@dc.mitsubishielectric.co.jp>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/dir.c
fs/exfat/exfat_fs.h
fs/exfat/file.c
fs/exfat/inode.c
fs/exfat/namei.c