From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268237AbUHFTba (ORCPT ); Fri, 6 Aug 2004 15:31:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268245AbUHFT27 (ORCPT ); Fri, 6 Aug 2004 15:28:59 -0400 Received: from gprs214-146.eurotel.cz ([160.218.214.146]:41600 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S268246AbUHFT1P (ORCPT ); Fri, 6 Aug 2004 15:27:15 -0400 Date: Fri, 6 Aug 2004 21:26:56 +0200 From: Pavel Machek To: Patrick Mochel Cc: linux-kernel@vger.kernel.org Subject: Re: [6/25] Merge pmdisk and swsusp Message-ID: <20040806192656.GG3048@elf.ucw.cz> References: <20040718220954.GB31958@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.5.1+cvs20040105i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > Sorry about the delay; all the conferences are finally over (for > now) :-). Well, I'm back from canoes for now, so I'm at least able to read the mail... > > > +static void calc_order(void) > > > +{ > > > + int diff; > > > + int order; > > > + > > > + order = get_bitmask_order(SUSPEND_PD_PAGES(nr_copy_pages)); > > > + nr_copy_pages += 1 << order; > > > + do { > > > + diff = get_bitmask_order(SUSPEND_PD_PAGES(nr_copy_pages)) - order; > > > + if (diff) { > > > + order += diff; > > > + nr_copy_pages += 1 << diff; > > > + } > > > + } while(diff); > > > + pagedir_order = order; > > > +} > > > > This code is "interesting". Perhaps at least comment would be good > > here? > > Sure, patch below. Looks good. Pavel -- People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!