From b3781ecd197ac3c69ebb2bfd89df62e1ef458d2c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 9 Sep 2008 07:52:37 -0700 Subject: [PATCH] mds: fix lock ordering --- src/include/ceph_fs.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/include/ceph_fs.h b/src/include/ceph_fs.h index 87b9082b7e25..415ecabd8bcb 100644 --- a/src/include/ceph_fs.h +++ b/src/include/ceph_fs.h @@ -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 */ -- 2.47.3