summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2019-07-19 09:51:42 +0300
committerDavid Sterba <dsterba@suse.com>2019-09-09 15:59:00 +0300
commit135da9766eea6134229146f6f67fdcbba41120e1 (patch)
tree9cc949f9dbcb5c007064d13a819994871c8acb8a /scripts
parent9e3246a5f675932079cf4cc1818b7c1b02f93e36 (diff)
downloadlinux-135da9766eea6134229146f6f67fdcbba41120e1.tar.xz
btrfs: volumes: Add comment for find_free_dev_extent_start()
Since commit 6df9a95e6339 ("Btrfs: make the chunk allocator completely tree lockless") we search commit root of device tree to avoid deadlock. This introduced a safety feature, find_free_dev_extent_start() won't use dev extents which just get freed in current transaction. This safety feature makes sure we won't allocate new block group using just freed dev extents to break CoW. However, this feature also makes find_free_dev_extent_start() not reliable reporting free device space. Just add such comment to make later viewer careful about this behavior. This behavior makes one caller, btrfs_can_relocate() unreliable determining the device free space. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions