Re: [PATCH v2] btrfs: use customized batch size for total_bytes_pinned

2018-07-12 Thread ethanlien
Omar Sandoval 於 2018-07-13 06:19 寫到: On Wed, Jul 11, 2018 at 11:59:36PM +0800, Ethan Lien wrote: In commit b150a4f10d878 ("Btrfs: use a percpu to keep track of possibly pinned bytes") we use total_bytes_pinned to track how many bytes we are going to free in this transaction. When we are close t

Re: [PATCH v2] btrfs: use customized batch size for total_bytes_pinned

2018-07-12 Thread Omar Sandoval
On Wed, Jul 11, 2018 at 11:59:36PM +0800, Ethan Lien wrote: > In commit b150a4f10d878 ("Btrfs: use a percpu to keep track of possibly > pinned bytes") we use total_bytes_pinned to track how many bytes we are > going to free in this transaction. When we are close to ENOSPC, we check it > and know if

Re: [PATCH v2] btrfs: use customized batch size for total_bytes_pinned

2018-07-12 Thread ethanlien
Nikolay Borisov 於 2018-07-12 15:07 寫到: On 11.07.2018 18:59, Ethan Lien wrote: In commit b150a4f10d878 ("Btrfs: use a percpu to keep track of possibly pinned bytes") we use total_bytes_pinned to track how many bytes we are going to free in this transaction. When we are close to ENOSPC, we check

Re: [PATCH v2] btrfs: use customized batch size for total_bytes_pinned

2018-07-12 Thread Nikolay Borisov
On 11.07.2018 18:59, Ethan Lien wrote: > In commit b150a4f10d878 ("Btrfs: use a percpu to keep track of possibly > pinned bytes") we use total_bytes_pinned to track how many bytes we are > going to free in this transaction. When we are close to ENOSPC, we check it > and know if we can make the a