diff options
author | David Sterba <dsterba@suse.com> | 2016-01-25 17:51:31 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-11 16:15:43 +0100 |
commit | 242e2956e4afde7727fffe21adc0a7b198b77f96 (patch) | |
tree | 15a67db1b4f27ab11ba1c3828e948a9b1ffeac1a /fs/btrfs/volumes.c | |
parent | 50c2d5abe64c1726b48d292a2ab04f60e8238933 (diff) | |
download | op-kernel-dev-242e2956e4afde7727fffe21adc0a7b198b77f96.zip op-kernel-dev-242e2956e4afde7727fffe21adc0a7b198b77f96.tar.gz |
btrfs: switch dev stats item to the permanent item key
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index b306a20..177a0a8 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -6705,8 +6705,8 @@ int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info) int item_size; struct btrfs_dev_stats_item *ptr; - key.objectid = 0; - key.type = BTRFS_DEV_STATS_KEY; + key.objectid = BTRFS_DEV_STATS_OBJECTID; + key.type = BTRFS_PERSISTENT_ITEM_KEY; key.offset = device->devid; ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); if (ret) { @@ -6753,8 +6753,8 @@ static int update_dev_stat_item(struct btrfs_trans_handle *trans, int ret; int i; - key.objectid = 0; - key.type = BTRFS_DEV_STATS_KEY; + key.objectid = BTRFS_DEV_STATS_OBJECTID; + key.type = BTRFS_PERSISTENT_ITEM_KEY; key.offset = device->devid; path = btrfs_alloc_path(); |