Merge branch 'for-chris' of git://github.com/sensille/linux into integration
Chris Mason [Sun, 6 Nov 2011 08:05:08 +0000 (03:05 -0500)]
Conflicts:
fs/btrfs/ctree.h

Signed-off-by: Chris Mason <chris.mason@oracle.com>

1  2 
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/scrub.c
fs/btrfs/volumes.c

@@@ -1158,8 -1121,9 +1159,12 @@@ struct btrfs_fs_info 
  
        struct btrfs_delayed_root *delayed_root;
  
+       /* readahead tree */
+       spinlock_t reada_lock;
+       struct radix_tree_root reada_tree;
++
 +      /* next backup root to be overwritten */
 +      int backup_root_index;
  };
  
  /*
@@@ -1902,8 -1746,11 +1971,12 @@@ struct btrfs_root *open_ctree(struct su
        fs_info->metadata_ratio = 0;
        fs_info->defrag_inodes = RB_ROOT;
        fs_info->trans_no_join = 0;
 +      fs_info->free_chunk_space = 0;
  
+       /* readahead state */
+       INIT_RADIX_TREE(&fs_info->reada_tree, GFP_NOFS & ~__GFP_WAIT);
+       spin_lock_init(&fs_info->reada_lock);
        fs_info->thread_pool_size = min_t(unsigned long,
                                          num_online_cpus() + 2, 8);
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge