mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
btrfs: delete stale comments after merge conflict resolution
There are two comments in btrfs_cache_block_group that I left when resolving conflict between commitsced8ecf026
"btrfs: fix space cache corruption and potential double allocations" and527c490f44
"btrfs: delete btrfs_wait_space_cache_v1_finished". The former reworked the caching logic to wait until the caching ends in btrfs_cache_block_group while the latter only open coded the waiting. Both removed btrfs_wait_space_cache_v1_finished, the correct code is with the waiting and returning error. Thus the conflict resolution was OK. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
9e769bd7e5
commit
295a53ccc4
@ -774,10 +774,8 @@ int btrfs_cache_block_group(struct btrfs_block_group *cache, bool wait)
|
|||||||
|
|
||||||
btrfs_queue_work(fs_info->caching_workers, &caching_ctl->work);
|
btrfs_queue_work(fs_info->caching_workers, &caching_ctl->work);
|
||||||
out:
|
out:
|
||||||
/* REVIEW */
|
|
||||||
if (wait && caching_ctl)
|
if (wait && caching_ctl)
|
||||||
ret = btrfs_caching_ctl_wait_done(cache, caching_ctl);
|
ret = btrfs_caching_ctl_wait_done(cache, caching_ctl);
|
||||||
/* wait_event(caching_ctl->wait, space_cache_v1_done(cache)); */
|
|
||||||
if (caching_ctl)
|
if (caching_ctl)
|
||||||
btrfs_put_caching_control(caching_ctl);
|
btrfs_put_caching_control(caching_ctl);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user