disk-io.c (e465768938f95388723b0fd3c50a0ae48173edb9) | disk-io.c (1a40e23b95da45051ee4d74374c58ae87a14051c) |
---|---|
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, --- 1392 unchanged lines hidden (view full) --- 1401 extent_io_tree_init(&fs_info->pinned_extents, 1402 fs_info->btree_inode->i_mapping, GFP_NOFS); 1403 extent_io_tree_init(&fs_info->pending_del, 1404 fs_info->btree_inode->i_mapping, GFP_NOFS); 1405 extent_io_tree_init(&fs_info->extent_ins, 1406 fs_info->btree_inode->i_mapping, GFP_NOFS); 1407 fs_info->do_barriers = 1; 1408 | 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, --- 1392 unchanged lines hidden (view full) --- 1401 extent_io_tree_init(&fs_info->pinned_extents, 1402 fs_info->btree_inode->i_mapping, GFP_NOFS); 1403 extent_io_tree_init(&fs_info->pending_del, 1404 fs_info->btree_inode->i_mapping, GFP_NOFS); 1405 extent_io_tree_init(&fs_info->extent_ins, 1406 fs_info->btree_inode->i_mapping, GFP_NOFS); 1407 fs_info->do_barriers = 1; 1408 |
1409 extent_io_tree_init(&fs_info->reloc_mapping_tree, 1410 fs_info->btree_inode->i_mapping, GFP_NOFS); 1411 INIT_LIST_HEAD(&fs_info->dead_reloc_roots); 1412 btrfs_leaf_ref_tree_init(&fs_info->reloc_ref_tree); |
|
1409 btrfs_leaf_ref_tree_init(&fs_info->shared_ref_tree); 1410 1411 BTRFS_I(fs_info->btree_inode)->root = tree_root; 1412 memset(&BTRFS_I(fs_info->btree_inode)->location, 0, 1413 sizeof(struct btrfs_key)); 1414 insert_inode_hash(fs_info->btree_inode); 1415 1416 mutex_init(&fs_info->trans_mutex); 1417 mutex_init(&fs_info->tree_log_mutex); 1418 mutex_init(&fs_info->drop_mutex); 1419 mutex_init(&fs_info->alloc_mutex); 1420 mutex_init(&fs_info->chunk_mutex); 1421 mutex_init(&fs_info->transaction_kthread_mutex); 1422 mutex_init(&fs_info->cleaner_mutex); 1423 mutex_init(&fs_info->volume_mutex); | 1413 btrfs_leaf_ref_tree_init(&fs_info->shared_ref_tree); 1414 1415 BTRFS_I(fs_info->btree_inode)->root = tree_root; 1416 memset(&BTRFS_I(fs_info->btree_inode)->location, 0, 1417 sizeof(struct btrfs_key)); 1418 insert_inode_hash(fs_info->btree_inode); 1419 1420 mutex_init(&fs_info->trans_mutex); 1421 mutex_init(&fs_info->tree_log_mutex); 1422 mutex_init(&fs_info->drop_mutex); 1423 mutex_init(&fs_info->alloc_mutex); 1424 mutex_init(&fs_info->chunk_mutex); 1425 mutex_init(&fs_info->transaction_kthread_mutex); 1426 mutex_init(&fs_info->cleaner_mutex); 1427 mutex_init(&fs_info->volume_mutex); |
1428 mutex_init(&fs_info->tree_reloc_mutex); |
|
1424 init_waitqueue_head(&fs_info->transaction_throttle); 1425 init_waitqueue_head(&fs_info->transaction_wait); 1426 init_waitqueue_head(&fs_info->async_submit_wait); 1427 init_waitqueue_head(&fs_info->tree_log_wait); 1428 atomic_set(&fs_info->tree_log_commit, 0); 1429 atomic_set(&fs_info->tree_log_writers, 0); 1430 fs_info->tree_log_transid = 0; 1431 --- 190 unchanged lines hidden (view full) --- 1622 __setup_root(nodesize, leafsize, sectorsize, stripesize, 1623 log_tree_root, fs_info, BTRFS_TREE_LOG_OBJECTID); 1624 1625 log_tree_root->node = read_tree_block(tree_root, bytenr, 1626 blocksize, 0); 1627 ret = btrfs_recover_log_trees(log_tree_root); 1628 BUG_ON(ret); 1629 } | 1429 init_waitqueue_head(&fs_info->transaction_throttle); 1430 init_waitqueue_head(&fs_info->transaction_wait); 1431 init_waitqueue_head(&fs_info->async_submit_wait); 1432 init_waitqueue_head(&fs_info->tree_log_wait); 1433 atomic_set(&fs_info->tree_log_commit, 0); 1434 atomic_set(&fs_info->tree_log_writers, 0); 1435 fs_info->tree_log_transid = 0; 1436 --- 190 unchanged lines hidden (view full) --- 1627 __setup_root(nodesize, leafsize, sectorsize, stripesize, 1628 log_tree_root, fs_info, BTRFS_TREE_LOG_OBJECTID); 1629 1630 log_tree_root->node = read_tree_block(tree_root, bytenr, 1631 blocksize, 0); 1632 ret = btrfs_recover_log_trees(log_tree_root); 1633 BUG_ON(ret); 1634 } |
1635 1636 ret = btrfs_cleanup_reloc_trees(tree_root); 1637 BUG_ON(ret); 1638 |
|
1630 fs_info->last_trans_committed = btrfs_super_generation(disk_super); 1631 return tree_root; 1632 1633fail_cleaner: 1634 kthread_stop(fs_info->cleaner_kthread); 1635fail_extent_root: 1636 free_extent_buffer(extent_root->node); 1637fail_tree_root: --- 393 unchanged lines hidden --- | 1639 fs_info->last_trans_committed = btrfs_super_generation(disk_super); 1640 return tree_root; 1641 1642fail_cleaner: 1643 kthread_stop(fs_info->cleaner_kthread); 1644fail_extent_root: 1645 free_extent_buffer(extent_root->node); 1646fail_tree_root: --- 393 unchanged lines hidden --- |