summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorLiu Bo2012-12-27 10:01:23 +0100
committerJosef Bacik2013-02-20 15:37:18 +0100
commita1897fddd28daf6b23d05a30dc2a18836f77f8e3 (patch)
tree801697e69b202721e861ab33d78d7f3bcb6235c5 /fs/btrfs/ctree.h
parentBtrfs: save us a read_lock (diff)
downloadkernel-qcow2-linux-a1897fddd28daf6b23d05a30dc2a18836f77f8e3.tar.gz
kernel-qcow2-linux-a1897fddd28daf6b23d05a30dc2a18836f77f8e3.tar.xz
kernel-qcow2-linux-a1897fddd28daf6b23d05a30dc2a18836f77f8e3.zip
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 {
/* block group cache stuff */
spinlock_t block_group_cache_lock;
+ u64 first_logical_byte;
struct rb_root block_group_cache_tree;
/* keep track of unallocated space */