]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: call the lru_remove() twice,when trim cache 15662/head
authorhuanwen ren <rhwlyw@163.com>
Tue, 13 Jun 2017 09:16:22 +0000 (17:16 +0800)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 09:16:22 +0000 (17:16 +0800)
commit13445894dae0545aecf0d9dd9f0eede2b3a1aefe
treed31e067bca929ee328d6dc48ab0d67f5255a0b6e
parent916c5e3332058172d7ea2c0e3cde393ae17e03e0
client: call the lru_remove() twice,when trim cache

call the lru_remove() twice,when trim cache,
first:  trim_cache()---> lru_expire() ---> lru_remove();
second: trim_cache()---> trim_dentry() ---> unlink() ---> lru_remove().
fix as:
In access to lru's dentry information, the first does not remove the operation,
unified in the trim_dentry function to deal with more reasonable.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/client/Client.cc