Skip to contentSkip to conversation

bcachefs: move bch2_xattr_handlers to .rodata

PATCH Applied Thomas Bertschinger 2 participants 2 messages Sep 14, 2024 – Sep 21, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcachefs: move bch2_xattr_handlers to .rodata

A series posted previously moved all of the struct xattr_handler tables to .rodata for each filesystem [1].

However, this appears to have been done shortly before bcachefs was merged, so bcachefs was missed at that time.

---
 fs/bcachefs/xattr.c | 2 +-
 fs/bcachefs/xattr.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
fs/bcachefs/xattr.c +1 -1
index 56c8d3fe55a4..9986bc7ffe73 100644
@@ -609,7 +609,7 @@ static const struct xattr_handler bch_xattr_bcachefs_effective_handler = {
 
 #endif /* NO_BCACHEFS_FS */
 
-const struct xattr_handler *bch2_xattr_handlers[] = {
+const struct xattr_handler * const bch2_xattr_handlers[] = {
 	&bch_xattr_user_handler,
 	&bch_xattr_trusted_handler,
 	&bch_xattr_security_handler,
fs/bcachefs/xattr.h +1 -1
index c188a5ad64ce..2c96de051f3e 100644
@@ -44,6 +44,6 @@ int bch2_xattr_set(struct btree_trans *, subvol_inum,
 
 ssize_t bch2_xattr_list(struct dentry *, char *, size_t);
 
-extern const struct xattr_handler *bch2_xattr_handlers[];
+extern const struct xattr_handler * const bch2_xattr_handlers[];
 
 #endif /* _BCACHEFS_XATTR_H */
Signature · 1 line
2.46.0