• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/btrfs/

Lines Matching defs:log_root_tree

157 	if (!root->fs_info->log_root_tree) {
1883 ret = btrfs_insert_root(trans, log->fs_info->log_root_tree,
1886 ret = btrfs_update_root(trans, log->fs_info->log_root_tree,
1957 struct btrfs_root *log_root_tree = root->fs_info->log_root_tree;
2018 mutex_lock(&log_root_tree->log_mutex);
2019 log_root_tree->log_batch++;
2020 atomic_inc(&log_root_tree->log_writers);
2021 mutex_unlock(&log_root_tree->log_mutex);
2025 mutex_lock(&log_root_tree->log_mutex);
2026 if (atomic_dec_and_test(&log_root_tree->log_writers)) {
2028 if (waitqueue_active(&log_root_tree->log_writer_wait))
2029 wake_up(&log_root_tree->log_writer_wait);
2036 mutex_unlock(&log_root_tree->log_mutex);
2041 index2 = log_root_tree->log_transid % 2;
2042 if (atomic_read(&log_root_tree->log_commit[index2])) {
2044 wait_log_commit(trans, log_root_tree,
2045 log_root_tree->log_transid);
2046 mutex_unlock(&log_root_tree->log_mutex);
2049 atomic_set(&log_root_tree->log_commit[index2], 1);
2051 if (atomic_read(&log_root_tree->log_commit[(index2 + 1) % 2])) {
2052 wait_log_commit(trans, log_root_tree,
2053 log_root_tree->log_transid - 1);
2056 wait_for_writer(trans, log_root_tree);
2064 mutex_unlock(&log_root_tree->log_mutex);
2069 ret = btrfs_write_and_wait_marked_extents(log_root_tree,
2070 &log_root_tree->dirty_log_pages,
2076 log_root_tree->node->start);
2078 btrfs_header_level(log_root_tree->node));
2080 log_root_tree->log_batch = 0;
2081 log_root_tree->log_transid++;
2084 mutex_unlock(&log_root_tree->log_mutex);
2102 atomic_set(&log_root_tree->log_commit[index2], 0);
2104 if (waitqueue_active(&log_root_tree->log_commit_wait[index2]))
2105 wake_up(&log_root_tree->log_commit_wait[index2]);
2158 if (fs_info->log_root_tree) {
2159 free_log_tree(trans, fs_info->log_root_tree);
2160 fs_info->log_root_tree = NULL;
3064 int btrfs_recover_log_trees(struct btrfs_root *log_root_tree)
3073 struct btrfs_fs_info *fs_info = log_root_tree->fs_info;
3088 walk_log_tree(trans, log_root_tree, &wc);
3096 ret = btrfs_search_slot(NULL, log_root_tree, &key, path, 0, 0);
3106 btrfs_release_path(log_root_tree, path);
3110 log = btrfs_read_fs_root_no_radix(log_root_tree,
3142 btrfs_release_path(log_root_tree, path);
3159 free_extent_buffer(log_root_tree->node);
3160 log_root_tree->log_root = NULL;
3166 kfree(log_root_tree);