Re: [PATCH v2] Increase page and bit waitqueue hash size

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

 



On 17/03/2021 08.54, Nicholas Piggin wrote:

> +#if CONFIG_BASE_SMALL
> +static const unsigned int page_wait_table_bits = 4;
>  static wait_queue_head_t page_wait_table[PAGE_WAIT_TABLE_SIZE] __cacheline_aligned;

>  
> +	if (!CONFIG_BASE_SMALL) {
> +		page_wait_table = alloc_large_system_hash("page waitqueue hash",
> +							sizeof(wait_queue_head_t),
> +							0,

So, how does the compiler not scream at you for assigning to an array,
even if it's inside an if (0)?

Rasmus




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux