[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[linux-lvm] Re: [PATCH LVM2] (3/3) add 'cling' allocation policy
- From: Alasdair G Kergon <agk redhat com>
- To: "Jun'ichi Nomura" <j-nomura ce jp nec com>
- Cc: Alasdair Kergon <agk redhat com>, linux-lvm redhat com
- Subject: [linux-lvm] Re: [PATCH LVM2] (3/3) add 'cling' allocation policy
- Date: Sun, 8 Oct 2006 13:06:56 +0100
On Fri, Oct 06, 2006 at 05:56:54PM -0400, Jun'ichi Nomura wrote:
> This patch adds 'cling' allocation policy.
Applied.
Needed to reset preferred_count at the top of the outer loop.
(Was no need previously as contiguous had exactly one possible
match so was pointless going round the loop again so it didn't.)
> + } else if (cling) {
> + if (prev_lvseg &&
> + _check_same_pv(prev_lvseg,
> + pva, areas,
> + areas_size)) {
> + prefered_count++;
> goto next_pv;
> }
> continue;
goto next_pv here - pointless repeatedly testing the same PV - if
it didn't match once it won't again
Alasdair
--
agk redhat com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]