On 1/19/22 9:20 PM, Matthew Wilcox wrote: > On Wed, Jan 12, 2022 at 05:02:13PM +0800, JeffleXu wrote: >> I'm afraid IDR can't be replaced by xarray here. Because we need an 'ID' >> for each pending read request, so that after fetching data from remote, >> user daemon could notify kernel which read request has finished by this >> 'ID'. >> >> Currently this 'ID' is get from idr_alloc(), and actually identifies the >> position of corresponding read request inside the IDR tree. I can't find >> similar API of xarray implementing similar function, i.e., returning an >> 'ID'. > > xa_alloc(). > Oh yes. Thanks. I will try to convert to xarray API... -- Thanks, Jeffle -- Linux-cachefs mailing list Linux-cachefs@redhat.com https://listman.redhat.com/mailman/listinfo/linux-cachefs
- [Linux-cachefs] [PATCH v1 16/23] erofs: add 'uuid' mount... Jeffle Xu
- [Linux-cachefs] [PATCH v1 22/23] cachefiles: add done co... Jeffle Xu
- [Linux-cachefs] [PATCH v1 14/23] erofs: register cookie ... Jeffle Xu
- [Linux-cachefs] [PATCH v1 19/23] cachefiles: implement .... Jeffle Xu
- Re: [Linux-cachefs] [PATCH v1 19/23] cachefiles: im... kernel test robot
- Re: [Linux-cachefs] [PATCH v1 19/23] cachefiles: im... Matthew Wilcox
- Re: [Linux-cachefs] [PATCH v1 19/23] cachefiles... JeffleXu
- Re: [Linux-cachefs] [PATCH v1 19/23] cachef... JeffleXu
- Re: [Linux-cachefs] [PATCH v1 19/23] ca... Matthew Wilcox
- Re: [Linux-cachefs] [PATCH v1 19/2... JeffleXu
- Re: [Linux-cachefs] [PATCH v1 19/23] cachefiles: im... kernel test robot
- [Linux-cachefs] [PATCH v1 05/23] netfs: add inode parame... Jeffle Xu
- [Linux-cachefs] [PATCH v1 15/23] erofs: implement fscach... Jeffle Xu
- [Linux-cachefs] [PATCH v1 10/23] erofs: add anonymous in... Jeffle Xu
- [Linux-cachefs] [PATCH v1 23/23] erofs: support on deman... Jeffle Xu
- [Linux-cachefs] [PATCH v1 20/23] cachefiles: implement .... Jeffle Xu