diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2012-12-27 09:01:23 (GMT) |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 14:37:18 (GMT) |
commit | a1897fddd28daf6b23d05a30dc2a18836f77f8e3 (patch) | |
tree | 801697e69b202721e861ab33d78d7f3bcb6235c5 /fs/btrfs/disk-io.c | |
parent | 39f9d028c9906cc7b625df84442205f6bcc84477 (diff) | |
download | linux-fsl-qoriq-a1897fddd28daf6b23d05a30dc2a18836f77f8e3.tar.xz |
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/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 1db8a99..04f98e3 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2130,6 +2130,7 @@ int open_ctree(struct super_block *sb, spin_lock_init(&fs_info->block_group_cache_lock); fs_info->block_group_cache_tree = RB_ROOT; + fs_info->first_logical_byte = (u64)-1; extent_io_tree_init(&fs_info->freed_extents[0], fs_info->btree_inode->i_mapping); |