1 #ifndef CEPH_CLIENT_DENTRY_H
2 #define CEPH_CLIENT_DENTRY_H
4 #include "include/lru.h"
5 #include "include/xlist.h"
7 #include "mds/mdstypes.h"
13 class Dentry : public LRUObject {
15 string name; // sort of lame
19 int ref; // 1 if there's a dir beneath me.
28 * ref==1 -> cached, unused
29 * ref >1 -> pinned in lru
35 //cout << "dentry.get on " << this << " " << name << " now " << ref << std::endl;
41 //cout << "dentry.put on " << this << " " << name << " now " << ref << std::endl;
46 void dump(Formatter *f) const;
49 dir(0), ref(1), offset(0),
50 lease_mds(-1), lease_gen(0), lease_seq(0), cap_shared_gen(0)