summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-01-25 16:51:31 (GMT)
committerDavid Sterba <dsterba@suse.com>2016-02-11 15:15:43 (GMT)
commit242e2956e4afde7727fffe21adc0a7b198b77f96 (patch)
tree15a67db1b4f27ab11ba1c3828e948a9b1ffeac1a /fs/btrfs/ctree.h
parent50c2d5abe64c1726b48d292a2ab04f60e8238933 (diff)
downloadlinux-242e2956e4afde7727fffe21adc0a7b198b77f96.tar.xz
btrfs: switch dev stats item to the permanent item key
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index ffc081e..70054ed 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -100,6 +100,9 @@ struct btrfs_ordered_sum;
/* 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
@@ -2219,7 +2222,7 @@ struct btrfs_ioctl_defrag_range_args {
*
* - 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