[patch 8/9] Guest page hinting: discarded page list.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux