mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
9afbb0b752
commit
d7fc640e6f
4 changed files with 70 additions and 15 deletions
|
@ -951,7 +951,7 @@ void btrfs_throttle(struct btrfs_root *root)
|
|||
void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
|
||||
{
|
||||
balance_dirty_pages_ratelimited_nr(
|
||||
root->fs_info->btree_inode->i_mapping, 1);
|
||||
root->fs_info->btree_inode->i_mapping, 1);
|
||||
}
|
||||
|
||||
void btrfs_set_buffer_defrag(struct extent_buffer *buf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue