bcachefs: time_stats: shrink time_stat_buffer for better alignment
authorDarrick J. Wong <djwong@kernel.org>
Mon, 5 Feb 2024 21:48:21 +0000 (13:48 -0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:38:03 +0000 (21:38 -0400)
Shrink this percpu object by one array element so that the object size
becomes exactly 512 bytes.  This will lead to more efficient memory use,
hopefully.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/time_stats.h

index ed6c03c436c02e9e218c5ff1cf52244ee618cb02..5df61403744b1af43a1794942a706f5550d97bd3 100644 (file)
@@ -64,7 +64,7 @@ struct time_stat_buffer {
        struct time_stat_buffer_entry {
                u64     start;
                u64     end;
-       }               entries[32];
+       }               entries[31];
 };
 
 struct bch2_time_stats {