8000 Fix indentation in pg_numa code · postgres/postgres@07448b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07448b3

Browse files
committed
Fix indentation in pg_numa code
Broken by commits 7fe2f67, 81f287d and bf1119d. Backpatch to 18, same as the offending commits. Backpatch-through: 18
1 parent 54ac494 commit 07448b3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/include/port/pg_numa.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ static inline void
2828
pg_numa_touch_mem_if_required(void *ptr)
2929
{
3030
volatile uint64 touch pg_attribute_unused();
31+
3132
touch = *(volatile uint64 *) ptr;
3233
}
3334

src/port/pg_numa.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ pg_numa_init(void)
6565
int
6666
pg_numa_query_pages(int pid, unsigned long count, void **pages, int *status)
6767
{
68-
unsigned long next = 0;
69-
int ret = 0;
68+
unsigned long next = 0;
69+
int ret = 0;
7070

7171
/*
7272
* 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)
8080
CHECK_FOR_INTERRUPTS();
8181

8282
/*
83-
* Bail out if any of the chunks errors out (ret<0). We ignore
84-
* (ret>0) which is used to return number of nonmigrated pages,
85-
* but we're not migrating any pages here.
83+
* Bail out if any of the chunks errors out (ret<0). We ignore (ret>0)
84+
* which is used to return number of nonmigrated pages, but we're not
85+
* migrating any pages here.
8686
*/
8787
ret = numa_move_pages(pid, count_chunk, &pages[next], NULL, &status[next], 0);
8888
if (ret < 0)

0 commit comments

Comments
 (0)
0