btrfs: switch balance item to the temporary item key
authorDavid Sterba <dsterba@suse.com>
Mon, 25 Jan 2016 16:51:31 +0000 (17:51 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Feb 2016 15:15:43 +0000 (16:15 +0100)
No visible change.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c

index 366b335946fae763e380ed884792df5efe07a2c9..b306a205504b0ff266c9bf1f33e142abb23d6f1e 100644 (file)
@@ -2966,7 +2966,7 @@ static int insert_balance_item(struct btrfs_root *root,
        }
 
        key.objectid = BTRFS_BALANCE_OBJECTID;
-       key.type = BTRFS_BALANCE_ITEM_KEY;
+       key.type = BTRFS_TEMPORARY_ITEM_KEY;
        key.offset = 0;
 
        ret = btrfs_insert_empty_item(trans, root, path, &key,
@@ -3015,7 +3015,7 @@ static int del_balance_item(struct btrfs_root *root)
        }
 
        key.objectid = BTRFS_BALANCE_OBJECTID;
-       key.type = BTRFS_BALANCE_ITEM_KEY;
+       key.type = BTRFS_TEMPORARY_ITEM_KEY;
        key.offset = 0;
 
        ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
@@ -3867,7 +3867,7 @@ int btrfs_recover_balance(struct btrfs_fs_info *fs_info)
                return -ENOMEM;
 
        key.objectid = BTRFS_BALANCE_OBJECTID;
-       key.type = BTRFS_BALANCE_ITEM_KEY;
+       key.type = BTRFS_TEMPORARY_ITEM_KEY;
        key.offset = 0;
 
        ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0);