[PATCH v2 04/18] fs/ceph/super.h: convert ceph_inode_xattr fields to `bool`
From: Max Kellermann
Date: Mon Jul 06 2026 - 04:23:19 EST
This reduces the size of `struct ceph_inode_xattr` by 8 bytes.
Signed-off-by: Max Kellermann <max.kellermann@xxxxxxxxx>
---
fs/ceph/super.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 7023af704e14..a3dae2c0bbee 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -320,10 +320,10 @@ struct ceph_inode_xattr {
int name_len;
const char *val;
int val_len;
- int dirty;
+ bool dirty;
- int should_free_name;
- int should_free_val;
+ bool should_free_name;
+ bool should_free_val;
};
/*
--
2.47.3