lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 01 Sep 2006 08:17:16 -0700
From:	Dave Hansen <haveblue@...ibm.com>
To:	Martin Schwidefsky <schwidefsky@...ibm.com>
Cc:	linux-kernel@...r.kernel.org, virtualization@...ts.osdl.org,
	akpm@...l.org, nickpiggin@...oo.com.au, frankeh@...son.ibm.com,
	rhim@...gateh.edu
Subject: Re: [patch 8/9] Guest page hinting: discarded page list.

On Fri, 2006-09-01 at 13:11 +0200, Martin Schwidefsky wrote:
> 
> +#if defined(CONFIG_PAGE_DISCARD_LIST)
> +       if (page_host_discards() && unlikely(PageDiscarded(page))) {
> +               local_irq_disable();
> +               list_add_tail(&page->lru,
> +                             &__get_cpu_var(page_discard_list));
> +               local_irq_enable();
> +               return;
> +       }
> +#endif 

If PageDiscarded() was #ifdef'd in the header, you wouldn't need this in
the .c file.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ