]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: allow delay in evaluating stray
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 4 Sep 2013 02:44:29 +0000 (10:44 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 19 Sep 2013 06:01:02 +0000 (14:01 +0800)
commitc63b4edcdc252fe960cfd8d9442df313c0ab12ce
tree2cc481bfa74eaa79c4fe18a61f8a5efaa5b2ccd7
parent298c39f2f596bf94e0b287b543e3aa6286ae453f
mds: allow delay in evaluating stray

Add a new parameter 'delay' to MDCache::eval_stray(). If 'delay'
is true, MDCache::eval_stray() adds the stray dentry to a delayed
list. Delayed stray dentries are processed in MDCache::trim().

This change is required by later commit that evaluates stray when
reference to cache object is released.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/CDentry.h
src/mds/MDCache.cc
src/mds/MDCache.h