disk-io.c (ce3ed71a58094544da1e1dc4723f1f553bb5b2d5) | disk-io.c (31840ae1a6b433ca0e6a8d341756ff478bbf959e) |
---|---|
1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 868 unchanged lines hidden (view full) --- 877 root, fs_info, BTRFS_TREE_LOG_OBJECTID); 878 879 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; 880 root->root_key.type = BTRFS_ROOT_ITEM_KEY; 881 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; 882 root->ref_cows = 0; 883 884 root->node = btrfs_alloc_free_block(trans, root, root->leafsize, | 1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 868 unchanged lines hidden (view full) --- 877 root, fs_info, BTRFS_TREE_LOG_OBJECTID); 878 879 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; 880 root->root_key.type = BTRFS_ROOT_ITEM_KEY; 881 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; 882 root->ref_cows = 0; 883 884 root->node = btrfs_alloc_free_block(trans, root, root->leafsize, |
885 BTRFS_TREE_LOG_OBJECTID, 886 0, 0, 0, 0, 0); | 885 0, BTRFS_TREE_LOG_OBJECTID, 886 trans->transid, 0, 0, 0); |
887 888 btrfs_set_header_nritems(root->node, 0); 889 btrfs_set_header_level(root->node, 0); 890 btrfs_set_header_bytenr(root->node, root->node->start); 891 btrfs_set_header_generation(root->node, trans->transid); 892 btrfs_set_header_owner(root->node, BTRFS_TREE_LOG_OBJECTID); 893 894 write_extent_buffer(root->node, root->fs_info->fsid, --- 1162 unchanged lines hidden --- | 887 888 btrfs_set_header_nritems(root->node, 0); 889 btrfs_set_header_level(root->node, 0); 890 btrfs_set_header_bytenr(root->node, root->node->start); 891 btrfs_set_header_generation(root->node, trans->transid); 892 btrfs_set_header_owner(root->node, BTRFS_TREE_LOG_OBJECTID); 893 894 write_extent_buffer(root->node, root->fs_info->fsid, --- 1162 unchanged lines hidden --- |