Revision ce93ec548cfa02f9cd6b70d546d5f36f4d160f57 authored by Josef Bacik on 17 November 2014, 20:45:48 UTC, committed by Chris Mason on 22 January 2015, 01:36:52 UTC
Currently any time we try to update the block groups on disk we will walk _all_ block groups and check for the ->dirty flag to see if it is set. This function can get called several times during a commit. So if you have several terabytes of data you will be a very sad panda as we will loop through _all_ of the block groups several times, which makes the commit take a while which slows down the rest of the file system operations. This patch introduces a dirty list for the block groups that we get added to when we dirty the block group for the first time. Then we simply update any block groups that have been dirtied since the last time we called btrfs_write_dirty_block_groups. This allows us to clean up how we write the free space cache out so it is much cleaner. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Chris Mason <clm@fb.com>
1 parent e7070be
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 55 bytes |
Makefile | -rw-r--r-- | 1.3 KB |
devicetable-offsets.c | -rw-r--r-- | 5.3 KB |
empty.c | -rw-r--r-- | 54 bytes |
file2alias.c | -rw-r--r-- | 37.4 KB |
mk_elfconfig.c | -rw-r--r-- | 1.2 KB |
modpost.c | -rw-r--r-- | 56.2 KB |
modpost.h | -rw-r--r-- | 4.7 KB |
sumversion.c | -rw-r--r-- | 11.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...