aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorliubo <liubo2009@cn.fujitsu.com>2012-09-07 22:01:26 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-01 15:19:17 -0400
commit0647d6bd16c03c928a22d1b90c4c8684c5908f08 (patch)
tree8832783f58d853934a89b00682324dd30c8793b0 /fs/btrfs
parent8407aa464331556e4f6784f974030b83fc7585ed (diff)
Btrfs: cleanup for unused ref cache stuff
As ref cache has been removed from btrfs, there is no user on its lock and its check. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ctree.h3
-rw-r--r--fs/btrfs/disk-io.c5
2 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 6923b9e4f90d..305002b7bf3a 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1376,9 +1376,6 @@ struct btrfs_fs_info {
1376 struct rb_root defrag_inodes; 1376 struct rb_root defrag_inodes;
1377 atomic_t defrag_running; 1377 atomic_t defrag_running;
1378 1378
1379 spinlock_t ref_cache_lock;
1380 u64 total_ref_cache_size;
1381
1382 /* 1379 /*
1383 * these three are in extended format (availability of single 1380 * these three are in extended format (availability of single
1384 * chunks is denoted by BTRFS_AVAIL_ALLOC_BIT_SINGLE bit, other 1381 * chunks is denoted by BTRFS_AVAIL_ALLOC_BIT_SINGLE bit, other
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 34717ac2416a..8054f7ccf46a 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2000,7 +2000,6 @@ int open_ctree(struct super_block *sb,
2000 INIT_LIST_HEAD(&fs_info->caching_block_groups); 2000 INIT_LIST_HEAD(&fs_info->caching_block_groups);
2001 spin_lock_init(&fs_info->delalloc_lock); 2001 spin_lock_init(&fs_info->delalloc_lock);
2002 spin_lock_init(&fs_info->trans_lock); 2002 spin_lock_init(&fs_info->trans_lock);
2003 spin_lock_init(&fs_info->ref_cache_lock);
2004 spin_lock_init(&fs_info->fs_roots_radix_lock); 2003 spin_lock_init(&fs_info->fs_roots_radix_lock);
2005 spin_lock_init(&fs_info->delayed_iput_lock); 2004 spin_lock_init(&fs_info->delayed_iput_lock);
2006 spin_lock_init(&fs_info->defrag_inodes_lock); 2005 spin_lock_init(&fs_info->defrag_inodes_lock);
@@ -3214,10 +3213,6 @@ int close_ctree(struct btrfs_root *root)
3214 printk(KERN_INFO "btrfs: at unmount delalloc count %llu\n", 3213 printk(KERN_INFO "btrfs: at unmount delalloc count %llu\n",
3215 (unsigned long long)fs_info->delalloc_bytes); 3214 (unsigned long long)fs_info->delalloc_bytes);
3216 } 3215 }
3217 if (fs_info->total_ref_cache_size) {
3218 printk(KERN_INFO "btrfs: at umount reference cache size %llu\n",
3219 (unsigned long long)fs_info->total_ref_cache_size);
3220 }
3221 3216
3222 free_extent_buffer(fs_info->extent_root->node); 3217 free_extent_buffer(fs_info->extent_root->node);
3223 free_extent_buffer(fs_info->extent_root->commit_root); 3218 free_extent_buffer(fs_info->extent_root->commit_root);