aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-16 11:18:44 -0400
committerChristoph Hellwig <hch@lst.de>2017-10-19 10:15:18 -0400
commit4843afe4e6a5c1ddb3824b14678aa112e24f1e43 (patch)
tree9e325279e49a0f1d076d1d77c462966b87705f81
parentece550b5758645809876e6e7862bf485c3a8d15c (diff)
ocfs2/cluster: make config_item_type const
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--fs/ocfs2/cluster/heartbeat.c4
-rw-r--r--fs/ocfs2/cluster/nodemanager.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index d0206042d068..ea8c551bcd7e 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -2025,7 +2025,7 @@ static struct configfs_item_operations o2hb_region_item_ops = {
2025 .release = o2hb_region_release, 2025 .release = o2hb_region_release,
2026}; 2026};
2027 2027
2028static struct config_item_type o2hb_region_type = { 2028static const struct config_item_type o2hb_region_type = {
2029 .ct_item_ops = &o2hb_region_item_ops, 2029 .ct_item_ops = &o2hb_region_item_ops,
2030 .ct_attrs = o2hb_region_attrs, 2030 .ct_attrs = o2hb_region_attrs,
2031 .ct_owner = THIS_MODULE, 2031 .ct_owner = THIS_MODULE,
@@ -2310,7 +2310,7 @@ static struct configfs_group_operations o2hb_heartbeat_group_group_ops = {
2310 .drop_item = o2hb_heartbeat_group_drop_item, 2310 .drop_item = o2hb_heartbeat_group_drop_item,
2311}; 2311};
2312 2312
2313static struct config_item_type o2hb_heartbeat_group_type = { 2313static const struct config_item_type o2hb_heartbeat_group_type = {
2314 .ct_group_ops = &o2hb_heartbeat_group_group_ops, 2314 .ct_group_ops = &o2hb_heartbeat_group_group_ops,
2315 .ct_attrs = o2hb_heartbeat_group_attrs, 2315 .ct_attrs = o2hb_heartbeat_group_attrs,
2316 .ct_owner = THIS_MODULE, 2316 .ct_owner = THIS_MODULE,
diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/cluster/nodemanager.c
index b17d180bdc16..a51200ece93d 100644
--- a/fs/ocfs2/cluster/nodemanager.c
+++ b/fs/ocfs2/cluster/nodemanager.c
@@ -378,7 +378,7 @@ static struct configfs_item_operations o2nm_node_item_ops = {
378 .release = o2nm_node_release, 378 .release = o2nm_node_release,
379}; 379};
380 380
381static struct config_item_type o2nm_node_type = { 381static const struct config_item_type o2nm_node_type = {
382 .ct_item_ops = &o2nm_node_item_ops, 382 .ct_item_ops = &o2nm_node_item_ops,
383 .ct_attrs = o2nm_node_attrs, 383 .ct_attrs = o2nm_node_attrs,
384 .ct_owner = THIS_MODULE, 384 .ct_owner = THIS_MODULE,
@@ -619,7 +619,7 @@ static struct configfs_group_operations o2nm_node_group_group_ops = {
619 .drop_item = o2nm_node_group_drop_item, 619 .drop_item = o2nm_node_group_drop_item,
620}; 620};
621 621
622static struct config_item_type o2nm_node_group_type = { 622static const struct config_item_type o2nm_node_group_type = {
623 .ct_group_ops = &o2nm_node_group_group_ops, 623 .ct_group_ops = &o2nm_node_group_group_ops,
624 .ct_owner = THIS_MODULE, 624 .ct_owner = THIS_MODULE,
625}; 625};
@@ -637,7 +637,7 @@ static struct configfs_item_operations o2nm_cluster_item_ops = {
637 .release = o2nm_cluster_release, 637 .release = o2nm_cluster_release,
638}; 638};
639 639
640static struct config_item_type o2nm_cluster_type = { 640static const struct config_item_type o2nm_cluster_type = {
641 .ct_item_ops = &o2nm_cluster_item_ops, 641 .ct_item_ops = &o2nm_cluster_item_ops,
642 .ct_attrs = o2nm_cluster_attrs, 642 .ct_attrs = o2nm_cluster_attrs,
643 .ct_owner = THIS_MODULE, 643 .ct_owner = THIS_MODULE,
@@ -722,7 +722,7 @@ static struct configfs_group_operations o2nm_cluster_group_group_ops = {
722 .drop_item = o2nm_cluster_group_drop_item, 722 .drop_item = o2nm_cluster_group_drop_item,
723}; 723};
724 724
725static struct config_item_type o2nm_cluster_group_type = { 725static const struct config_item_type o2nm_cluster_group_type = {
726 .ct_group_ops = &o2nm_cluster_group_group_ops, 726 .ct_group_ops = &o2nm_cluster_group_group_ops,
727 .ct_owner = THIS_MODULE, 727 .ct_owner = THIS_MODULE,
728}; 728};