]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: ldlm: move LDLM_GID_ANY to lustre_dlm.h
authorJinshan Xiong <jinshan.xiong@intel.com>
Sun, 18 Sep 2016 20:38:32 +0000 (16:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Sep 2016 07:53:46 +0000 (09:53 +0200)
lustre_idl.h only includes wire data; lustre_dlm.h is the
right place for LDLM_GID_ANY.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6028
Reviewed-on: http://review.whamcloud.com/13074
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre/lustre_idl.h
drivers/staging/lustre/lustre/include/lustre_dlm.h

index 445b8131334727e694b0ac52d71b51d78269ffdd..acb2806d8c609c6b5aa1d398a13c3a862257c8e7 100644 (file)
@@ -2716,8 +2716,6 @@ struct ldlm_extent {
        __u64 gid;
 };
 
-#define LDLM_GID_ANY ((__u64)-1)
-
 static inline int ldlm_extent_overlap(const struct ldlm_extent *ex1,
                                      const struct ldlm_extent *ex2)
 {
index 1ec4231cb988e451b26c3a73b9dbce649669a80c..d03534432624fb4ed389695e92eb4da60d306571 100644 (file)
@@ -572,6 +572,11 @@ enum lvb_type {
        LVB_T_LAYOUT    = 3,
 };
 
+/**
+ * LDLM_GID_ANY is used to match any group id in ldlm_lock_match().
+ */
+#define LDLM_GID_ANY   ((__u64)-1)
+
 /**
  * LDLM lock structure
  *