]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: show cdentry authpin debug state
authorSage Weil <sage@newdream.net>
Mon, 16 Aug 2010 21:03:40 +0000 (14:03 -0700)
committerSage Weil <sage@newdream.net>
Mon, 16 Aug 2010 21:51:25 +0000 (14:51 -0700)
src/mds/CDentry.cc
src/mds/CDentry.h

index 20416f5e3946464f263c522d35a8e6dc253ba8a9..2d7979e8876f78e6ab635c21132fdb5c7179f7ad 100644 (file)
@@ -92,6 +92,9 @@ ostream& operator<<(ostream& out, CDentry& dn)
     out << " pv=" << dn.get_projected_version();
   out << " v=" << dn.get_version();
 
+  if (dn.is_auth_pinned())
+    out << " ap=" << dn.get_num_auth_pins() << "+" << dn.get_num_nested_auth_pins();
+
   out << " inode=" << dn.get_linkage()->get_inode();
 
   if (dn.is_new()) out << " state=new";
index 468c4502b229ca09c35741ac4461d5f2a38675e6..77aab7700ecc18bf4e1b347c4db9208a41f26b5e 100644 (file)
@@ -264,6 +264,9 @@ public:
   void auth_unpin(void *by);
   void adjust_nested_auth_pins(int by, int dirby);
   bool is_frozen();
+  bool is_auth_pinned() { return auth_pins || nested_auth_pins; }
+  int get_num_auth_pins() { return auth_pins; }
+  int get_num_nested_auth_pins() { return nested_auth_pins; }
   
   void adjust_nested_anchors(int by);