Re: [PATCH] btrfs: Convert fs_info->free_chunk_space to atomic64_t

2017-05-12 Thread David Sterba
On Thu, May 11, 2017 at 09:17:46AM +0300, Nikolay Borisov wrote: > The ->free_chunk_space variable is used to track the unallocated space and > access to it is protected by a spinlock, which is not used for anything else. In the past, the spinlock protected a larger critical section where the over

[PATCH] btrfs: Convert fs_info->free_chunk_space to atomic64_t

2017-05-10 Thread Nikolay Borisov
The ->free_chunk_space variable is used to track the unallocated space and access to it is protected by a spinlock, which is not used for anything else. Make the code a bit self-explanatory by switching the variable to an atomic64_t type and kill the spinlock. Signed-off-by: Nikolay Borisov ---