]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: avoid evaluating stray dentry multiple times
authorYan, Zheng <zyan@redhat.com>
Thu, 14 Feb 2019 07:33:35 +0000 (15:33 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 14 Feb 2019 09:52:27 +0000 (17:52 +0800)
commit03b5df77b4fabcbfa5996b5cdfb7d7038dec3e05
treea2b9e6ead498244ac0a4dc35e00af5ea19e6dd8d
parentc9a3374b555805536e5248020221587c762bbbfb
mds: avoid evaluating stray dentry multiple times

If we call eval_stray(delay=true) for a dentry, the dentry will
get evaluated twice. We can avoid the extra evaluation by directly
put dentry into the delayed_eval_stray list.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/StrayManager.cc
src/mds/StrayManager.h