Hi! On Fri, 25 Mar 2011, huang jun wrote: > after i remove the local dentries ,metadata will store in stray > dentry.and now metadata of removed dentries will not be removed,did > the remove of stray depends on LRU ?if not ,on which circumstance > should we remove stray dentry? how to judge LRU's expire info? When a file is unlinked it goes into the stray directory. It stays there until the last references goes away (last client drops its capability, peer MDSs drop their replicas). There is code in the client and MDS to move the replica dentries to the tail of the LRU so that happens quickly. On the primary, though, the cache LRU is unrelated. eval_stray() is called and, if there are no references, it removes the file objects and then removes the entry from the stray dir. Does that answer your question? sage -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html