Re: handle flushing stray dentry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux