Skip to contentSkip to conversation

fs: pack struct kstat better

PATCH In review Christoph Hellwig 2 participants 2 messages Jan 29, 2025 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: pack struct kstat better

Move the change_cookie and subvol up to avoid two 4 byte holes.

---
 include/linux/stat.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/stat.h +2 -2
index 9d8382e23a9c..be7496a6a0dd 100644
@@ -50,11 +50,11 @@ struct kstat {
 	struct timespec64 btime;			/* File creation time */
 	u64		blocks;
 	u64		mnt_id;
+	u64		change_cookie;
+	u64		subvol;
 	u32		dio_mem_align;
 	u32		dio_offset_align;
 	u32		dio_read_offset_align;
-	u64		change_cookie;
-	u64		subvol;
 	u32		atomic_write_unit_min;
 	u32		atomic_write_unit_max;
 	u32		atomic_write_segments_max;
Signature · 1 line
2.45.2
#1 lore raw
Quoted 2 lines · Christoph Hellwig

Move the change_cookie and subvol up to avoid two 4 byte holes.

I applied this directly to my tree since I was the one asking for this change.

Linus