]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix indentation in pg_numa code
authorTomas Vondra <tomas.vondra@postgresql.org>
Tue, 1 Jul 2025 13:20:26 +0000 (15:20 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Tue, 1 Jul 2025 13:23:07 +0000 (15:23 +0200)
Broken by commits 7fe2f67c7c9f81f287dc923f and bf1119d74a79. Backpatch
to 18, same as the offending commits.

Backpatch-through: 18

src/include/port/pg_numa.h
src/port/pg_numa.c

index 6c8b7103cc344ee18304a0256cdb98927a5e2f41..9d1ea6d0db89a2688a49edf6f0c152afee13451c 100644 (file)
@@ -28,6 +28,7 @@ static inline void
 pg_numa_touch_mem_if_required(void *ptr)
 {
        volatile uint64 touch pg_attribute_unused();
+
        touch = *(volatile uint64 *) ptr;
 }
 
index c65f22020ea510bc211213753fd50563dcf255d3..3368a43a338264d2bb40f136fd7e7ba5560a59cc 100644 (file)
@@ -65,8 +65,8 @@ pg_numa_init(void)
 int
 pg_numa_query_pages(int pid, unsigned long count, void **pages, int *status)
 {
-       unsigned long   next = 0;
-       int                             ret = 0;
+       unsigned long next = 0;
+       int                     ret = 0;
 
        /*
         * 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();
 
                /*
-                * Bail out if any of the chunks errors out (ret<0). We ignore
-                * (ret>0) which is used to return number of nonmigrated pages,
-                * but we're not migrating any pages here.
+                * Bail out if any of the chunks errors out (ret<0). We ignore (ret>0)
+                * which is used to return number of nonmigrated pages, but we're not
+                * migrating any pages here.
                 */
                ret = numa_move_pages(pid, count_chunk, &pages[next], NULL, &status[next], 0);
                if (ret < 0)