summaryrefslogtreecommitdiff
path: root/include/linux/crush
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2013-12-24 23:19:25 +0400
committerIlya Dryomov <ilya.dryomov@inktank.com>2013-12-31 22:32:16 +0400
commit9a3b490a20e06368c81d7a81506e99388e733379 (patch)
treecfc62f5f25595bb67a31562db00ec6fc4671269a /include/linux/crush
parentc6d98a603a02594f6ecf16d0a0af989ae9fa7abd (diff)
downloadlinux-9a3b490a20e06368c81d7a81506e99388e733379.tar.xz
crush: use breadth-first search for indep mode
Reflects ceph.git commit 86e978036a4ecbac4c875e7c00f6c5bbe37282d3. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/crush')
-rw-r--r--include/linux/crush/crush.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/crush/crush.h b/include/linux/crush/crush.h
index 3d6a12928560..4023b1b52296 100644
--- a/include/linux/crush/crush.h
+++ b/include/linux/crush/crush.h
@@ -22,7 +22,8 @@
#define CRUSH_MAX_DEPTH 10 /* max crush hierarchy depth */
-#define CRUSH_ITEM_UNDEF 0x7fffffff /* undefined result */
+#define CRUSH_ITEM_UNDEF 0x7ffffffe /* undefined result (internal use only) */
+#define CRUSH_ITEM_NONE 0x7fffffff /* no result */
/*
* CRUSH uses user-defined "rules" to describe how inputs should be