From: Greg Farnum Date: Mon, 10 May 2010 22:41:03 +0000 (-0700) Subject: ceph_fs: CEPH_LOCK_UNLOCK should have its own bit, for safety X-Git-Tag: v0.22~346^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=367ff978d84123cb7d3961b42e1c0c8ad1f1e19e;p=ceph.git ceph_fs: CEPH_LOCK_UNLOCK should have its own bit, for safety --- diff --git a/src/include/ceph_fs.h b/src/include/ceph_fs.h index b9c4ed7c04e..7609ac251da 100644 --- a/src/include/ceph_fs.h +++ b/src/include/ceph_fs.h @@ -481,7 +481,7 @@ struct ceph_mds_reply_dirfrag { #define CEPH_LOCK_SHARED 1 #define CEPH_LOCK_EXCL 2 -#define CEPH_LOCK_UNLOCK 3 +#define CEPH_LOCK_UNLOCK 4 struct ceph_filelock { __u64 start;/* file offset to start lock at */ @@ -492,6 +492,7 @@ struct ceph_filelock { __u8 type; /* shared lock, exclusive lock, or unlock */ } __attribute__ ((packed)); + /* file access modes */ #define CEPH_FILE_MODE_PIN 0 #define CEPH_FILE_MODE_RD 1