aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2012-12-27 04:01:23 -0500
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 09:37:18 -0500
commita1897fddd28daf6b23d05a30dc2a18836f77f8e3 (patch)
tree801697e69b202721e861ab33d78d7f3bcb6235c5 /fs/btrfs/ctree.h
parent39f9d028c9906cc7b625df84442205f6bcc84477 (diff)
Btrfs: record first logical byte in memory
This'd save us a rbtree search which may become expensive in large filesystem. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 22f012d41fd0..9ee099f3f834 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1250,6 +1250,7 @@ struct btrfs_fs_info {
1250 1250
1251 /* block group cache stuff */ 1251 /* block group cache stuff */
1252 spinlock_t block_group_cache_lock; 1252 spinlock_t block_group_cache_lock;
1253 u64 first_logical_byte;
1253 struct rb_root block_group_cache_tree; 1254 struct rb_root block_group_cache_tree;
1254 1255
1255 /* keep track of unallocated space */ 1256 /* keep track of unallocated space */