btrfs: switch dev stats item to the permanent item key

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba
2016-01-25 17:51:31 +01:00
parent 50c2d5abe6
commit 242e2956e4
2 changed files with 8 additions and 5 deletions

View File

@@ -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