Re: [PATCH] z3fold: encode object length in the handle

2018-11-07 Thread Andrew Morton
On Mon, 29 Oct 2018 13:27:36 +0100 Vitaly Wool wrote: > Hi Andrew, > > Den tors 25 okt. 2018 kl 21:42 skrev Andrew Morton < > a...@linux-foundation.org>: > > > On Thu, 25 Oct 2018 11:28:21 +0200 Vitaly Wool > > wrote: > > > > > Reclaim and free can race on an object (which is basically ok) but

Re: [PATCH] z3fold: encode object length in the handle

2018-10-25 Thread Andrew Morton
On Thu, 25 Oct 2018 11:28:21 +0200 Vitaly Wool wrote: > Reclaim and free can race on an object (which is basically ok) but > in order for reclaim to be able to map "freed" object we need to > encode object length in the handle. handle_to_chunks() is thus > introduced to extract object length fro

[PATCH] z3fold: encode object length in the handle

2018-10-25 Thread Vitaly Wool
Reclaim and free can race on an object (which is basically ok) but in order for reclaim to be able to map "freed" object we need to encode object length in the handle. handle_to_chunks() is thus introduced to extract object length from a handle and use it during mapping of the last object we could