diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-02-18 12:12:38 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:00 -0400 |
commit | d7fc640e6fed46932f7c74e14f9b58b8637c66cf (patch) | |
tree | 525eda21f9e0d6d18bd55fd23d3a31814b224aa8 /fs/btrfs/disk-io.c | |
parent | 9afbb0b752ef30a429c45b9de6706e28ad1a36e1 (diff) |
Btrfs: Allocator improvements
Reduce CPU time searching for free blocks by optimizing find_first_extent_bit
Fix find_free_extent to make better use of the last_alloc hint. Before it
was often finding blocks just before the hint.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 6f0825b617d1..88e21bdbc478 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -951,7 +951,7 @@ void btrfs_throttle(struct btrfs_root *root) | |||
951 | void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr) | 951 | void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr) |
952 | { | 952 | { |
953 | balance_dirty_pages_ratelimited_nr( | 953 | balance_dirty_pages_ratelimited_nr( |
954 | root->fs_info->btree_inode->i_mapping, 1); | 954 | root->fs_info->btree_inode->i_mapping, 1); |
955 | } | 955 | } |
956 | 956 | ||
957 | void btrfs_set_buffer_defrag(struct extent_buffer *buf) | 957 | void btrfs_set_buffer_defrag(struct extent_buffer *buf) |