52 lines
1.8 KiB
Diff
52 lines
1.8 KiB
Diff
From cf3d513801562174506425a79a9e71050f1d5d77 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Bertschinger <tahbertschinger@gmail.com>
|
|
Date: Fri, 13 Sep 2024 18:11:22 -0600
|
|
Subject: [PATCH 011/213] bcachefs: move bch2_xattr_handlers to .rodata
|
|
Content-Type: text/plain; charset="utf-8"
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
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 [1]
|
|
Cc: Wedson Almeida Filho <wedsonaf@gmail.com>
|
|
Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
|
|
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
|
|
---
|
|
fs/bcachefs/xattr.c | 2 +-
|
|
fs/bcachefs/xattr.h | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/fs/bcachefs/xattr.c b/fs/bcachefs/xattr.c
|
|
index 952aca400faf..bf3c6bb50495 100644
|
|
--- a/fs/bcachefs/xattr.c
|
|
+++ b/fs/bcachefs/xattr.c
|
|
@@ -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,
|
|
diff --git a/fs/bcachefs/xattr.h b/fs/bcachefs/xattr.h
|
|
index c188a5ad64ce..2c96de051f3e 100644
|
|
--- a/fs/bcachefs/xattr.h
|
|
+++ b/fs/bcachefs/xattr.h
|
|
@@ -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 */
|
|
--
|
|
2.45.2
|
|
|