diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2012-12-27 09:01:23 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 09:37:18 -0500 |
commit | a1897fddd28daf6b23d05a30dc2a18836f77f8e3 (patch) | |
tree | 801697e69b202721e861ab33d78d7f3bcb6235c5 /fs/btrfs/ctree.h | |
parent | 39f9d028c9906cc7b625df84442205f6bcc84477 (diff) | |
download | op-kernel-dev-a1897fddd28daf6b23d05a30dc2a18836f77f8e3.zip op-kernel-dev-a1897fddd28daf6b23d05a30dc2a18836f77f8e3.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 22f012d..9ee099f 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 */ |