Re: [PATCH/RESEND v2 3/5] z3fold: extend compaction function

2017-01-12 Thread Dan Streetman
On Wed, Jan 11, 2017 at 3:52 PM, Vitaly Wool wrote: > On Wed, 11 Jan 2017 17:43:13 +0100 > Vitaly Wool wrote: > >> On Wed, Jan 11, 2017 at 5:28 PM, Dan Streetman wrote: >> > On Wed, Jan 11, 2017 at 10:06 AM, Vitaly Wool wrote: >> >> z3fold_compact_page() currently only handles the situation whe

Re: [PATCH/RESEND v2 3/5] z3fold: extend compaction function

2017-01-11 Thread Vitaly Wool
On Wed, 11 Jan 2017 17:43:13 +0100 Vitaly Wool wrote: > On Wed, Jan 11, 2017 at 5:28 PM, Dan Streetman wrote: > > On Wed, Jan 11, 2017 at 10:06 AM, Vitaly Wool wrote: > >> z3fold_compact_page() currently only handles the situation when > >> there's a single middle chunk within the z3fold page.

Re: [PATCH/RESEND v2 3/5] z3fold: extend compaction function

2017-01-11 Thread Vitaly Wool
On Wed, Jan 11, 2017 at 5:28 PM, Dan Streetman wrote: > On Wed, Jan 11, 2017 at 10:06 AM, Vitaly Wool wrote: >> z3fold_compact_page() currently only handles the situation when >> there's a single middle chunk within the z3fold page. However it >> may be worth it to move middle chunk closer to eit

Re: [PATCH/RESEND v2 3/5] z3fold: extend compaction function

2017-01-11 Thread Dan Streetman
On Wed, Jan 11, 2017 at 10:06 AM, Vitaly Wool wrote: > z3fold_compact_page() currently only handles the situation when > there's a single middle chunk within the z3fold page. However it > may be worth it to move middle chunk closer to either first or > last chunk, whichever is there, if the gap be

[PATCH/RESEND v2 3/5] z3fold: extend compaction function

2017-01-11 Thread Vitaly Wool
z3fold_compact_page() currently only handles the situation when there's a single middle chunk within the z3fold page. However it may be worth it to move middle chunk closer to either first or last chunk, whichever is there, if the gap between them is big enough. This patch adds the relevant code,