]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix lock ordering
authorSage Weil <sage@newdream.net>
Tue, 9 Sep 2008 14:52:37 +0000 (07:52 -0700)
committerSage Weil <sage@newdream.net>
Tue, 9 Sep 2008 18:32:57 +0000 (11:32 -0700)
src/include/ceph_fs.h

index 87b9082b7e253b7ff74ee043b3efbf4c3af10b6b..415ecabd8bcb1ebec97af6252dda56e2f13af216 100644 (file)
@@ -481,16 +481,16 @@ struct ceph_mds_getmap {
  *  - a few of these are internal to the mds
  */
 #define CEPH_LOCK_DN          1
-#define CEPH_LOCK_IVERSION    2     /* mds internal */
-#define CEPH_LOCK_IFILE       4     /* mds internal */
-#define CEPH_LOCK_IAUTH       8
-#define CEPH_LOCK_ILINK       16
-#define CEPH_LOCK_IDFT        32    /* dir frag tree */
-#define CEPH_LOCK_IDIR        64    /* mds internal */
-#define CEPH_LOCK_INEST       128   /* mds internal */
-#define CEPH_LOCK_IXATTR      256
-#define CEPH_LOCK_ISNAP       512
-#define CEPH_LOCK_INO         2048   /* immutable inode bits; not actually a lock */
+#define CEPH_LOCK_ISNAP       2
+#define CEPH_LOCK_IVERSION    4     /* mds internal */
+#define CEPH_LOCK_IFILE       8     /* mds internal */
+#define CEPH_LOCK_IDIR        16    /* mds internal */
+#define CEPH_LOCK_IAUTH       32
+#define CEPH_LOCK_ILINK       64
+#define CEPH_LOCK_IDFT        128   /* dir frag tree */
+#define CEPH_LOCK_INEST       256   /* mds internal */
+#define CEPH_LOCK_IXATTR      512
+#define CEPH_LOCK_INO         2048  /* immutable inode bits; not actually a lock */
 
 #define CEPH_LOCK_ICONTENT    (CEPH_LOCK_IFILE|CEPH_LOCK_IDIR)  /* alias for either filelock or dirlock */