1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Fix indentation in pg_numa code

Broken by commits 7fe2f67c7c, 81f287dc92 and bf1119d74a. Backpatch
to 18, same as the offending commits.

Backpatch-through: 18
This commit is contained in:
Tomas Vondra
2025-07-01 15:20:26 +02:00
parent bf1119d74a
commit 9e345415bc
2 changed files with 6 additions and 5 deletions

View File

@ -28,6 +28,7 @@ static inline void
pg_numa_touch_mem_if_required(void *ptr) pg_numa_touch_mem_if_required(void *ptr)
{ {
volatile uint64 touch pg_attribute_unused(); volatile uint64 touch pg_attribute_unused();
touch = *(volatile uint64 *) ptr; touch = *(volatile uint64 *) ptr;
} }

View File

@ -65,8 +65,8 @@ pg_numa_init(void)
int int
pg_numa_query_pages(int pid, unsigned long count, void **pages, int *status) pg_numa_query_pages(int pid, unsigned long count, void **pages, int *status)
{ {
unsigned long next = 0; unsigned long next = 0;
int ret = 0; int ret = 0;
/* /*
* Chunk pointers passed to numa_move_pages to NUMA_QUERY_CHUNK_SIZE * Chunk pointers passed to numa_move_pages to NUMA_QUERY_CHUNK_SIZE
@ -80,9 +80,9 @@ pg_numa_query_pages(int pid, unsigned long count, void **pages, int *status)
CHECK_FOR_INTERRUPTS(); CHECK_FOR_INTERRUPTS();
/* /*
* Bail out if any of the chunks errors out (ret<0). We ignore * Bail out if any of the chunks errors out (ret<0). We ignore (ret>0)
* (ret>0) which is used to return number of nonmigrated pages, * which is used to return number of nonmigrated pages, but we're not
* but we're not migrating any pages here. * migrating any pages here.
*/ */
ret = numa_move_pages(pid, count_chunk, &pages[next], NULL, &status[next], 0); ret = numa_move_pages(pid, count_chunk, &pages[next], NULL, &status[next], 0);
if (ret < 0) if (ret < 0)