summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-01 13:34:13 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:47:30 +0100
commit2add123c8e90583e5950909c2426b5ed8d927a49 (patch)
tree682cab6f26033d4df09ea6e50016e8ec1c98a012 /ctree.h
parente244550b42399370c11a4685a1da1954ec8c269e (diff)
btrfs-progs: switch dev stats item to the permanent item key
[ kernel patch 242e2956e4afde7727fffe21adc0a7b198b77f96 ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ctree.h b/ctree.h
index 255ebad9..eb6e36bd 100644
--- a/ctree.h
+++ b/ctree.h
@@ -85,6 +85,9 @@ struct btrfs_free_space_ctl;
/* tracks free space in block groups. */
#define BTRFS_FREE_SPACE_TREE_OBJECTID 10ULL
+/* device stats in the device tree */
+#define BTRFS_DEV_STATS_OBJECTID 0ULL
+
/* for storing balance parameters in the root tree */
#define BTRFS_BALANCE_OBJECTID -4ULL
@@ -1244,7 +1247,7 @@ struct btrfs_root {
*
* - device statistics, store IO stats in the device tree, one key for all
* stats
- * (0, BTRFS_DEV_STATS_KEY, 0)
+ * (BTRFS_DEV_STATS_OBJECTID, BTRFS_DEV_STATS_KEY, 0)
*/
#define BTRFS_PERSISTENT_ITEM_KEY 249