]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: move bch2_xattr_handlers to .rodata
authorThomas Bertschinger <tahbertschinger@gmail.com>
Sat, 14 Sep 2024 00:11:22 +0000 (18:11 -0600)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:14 +0000 (01:36 -0500)
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.

Link: https://lkml.kernel.org/r/20230930050033.41174-1-wedsonaf@gmail.com
Cc: Wedson Almeida Filho <wedsonaf@gmail.com>
Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/xattr.c
fs/bcachefs/xattr.h

index 952aca400faf4f1a6f2d838b809a0a96c62ebd57..bf3c6bb5049562f8588f2eb7c09ffa19ab2d240d 100644 (file)
@@ -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,
index c188a5ad64cef6b69dd20f0c9794c42bae24d71b..2c96de051f3e29e6984b93989224fa126069beb2 100644 (file)
@@ -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 */