Skip to content

Commit be28368

Browse files
Darrick J. WongKent Overstreet
authored andcommitted
bcachefs: time_stats: shrink time_stat_buffer for better alignment
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>
1 parent 273960b commit be28368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/time_stats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct time_stat_buffer {
6464
struct time_stat_buffer_entry {
6565
u64 start;
6666
u64 end;
67-
} entries[32];
67+
} entries[31];
6868
};
6969

7070
struct bch2_time_stats {

0 commit comments

Comments
 (0)