Re: [PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

2018-08-02 Thread David Sterba
On Mon, Jul 30, 2018 at 05:34:54PM +0900, Misono Tomohiro wrote: > to correctly count num_entries. > (I noticed that num_entries went to negative value when I'm running gdb) > > However, num_entries is actually not used in progs at all (it is used for > throttling in kernel), so maybe we can just

Re: [PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

2018-07-30 Thread Nikolay Borisov
On 30.07.2018 11:34, Misono Tomohiro wrote: > On 2018/06/08 21:47, Nikolay Borisov wrote: >> This commit pulls those portions of the kernel implementation of >> delayed refs which are necessary to have them working in user-space. >> I've done the following modifications: >> >> 1. Replaced all

Re: [PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

2018-07-30 Thread Misono Tomohiro
On 2018/06/08 21:47, Nikolay Borisov wrote: > This commit pulls those portions of the kernel implementation of > delayed refs which are necessary to have them working in user-space. > I've done the following modifications: > > 1. Replaced all kmem_cache_alloc calls to kmalloc. > > 2. Removed all

Re: [PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

2018-06-11 Thread Qu Wenruo
On 2018年06月11日 15:10, Nikolay Borisov wrote: > > > On 11.06.2018 08:20, Qu Wenruo wrote: >> >> >> On 2018年06月08日 20:47, Nikolay Borisov wrote: >>> This commit pulls those portions of the kernel implementation of >>> delayed refs which are necessary to have them working in user-space. >>> I've

Re: [PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

2018-06-11 Thread Nikolay Borisov
On 11.06.2018 08:20, Qu Wenruo wrote: > > > On 2018年06月08日 20:47, Nikolay Borisov wrote: >> This commit pulls those portions of the kernel implementation of >> delayed refs which are necessary to have them working in user-space. >> I've done the following modifications: >> >> 1. Replaced all

Re: [PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

2018-06-10 Thread Qu Wenruo
On 2018年06月08日 20:47, Nikolay Borisov wrote: > This commit pulls those portions of the kernel implementation of > delayed refs which are necessary to have them working in user-space. > I've done the following modifications: > > 1. Replaced all kmem_cache_alloc calls to kmalloc. > > 2. Removed

[PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

2018-06-08 Thread Nikolay Borisov
This commit pulls those portions of the kernel implementation of delayed refs which are necessary to have them working in user-space. I've done the following modifications: 1. Replaced all kmem_cache_alloc calls to kmalloc. 2. Removed all locking-related code, since we are single threaded in