Bugzilla : 16450
Description: Add loi_kms_set().
Details : Wrap kms updates into a helper function.
-
+
+Severity : minor
+Bugzilla : 16450
+Description: Constify instances of struct lsm_operations.
+Details : Constify instances of struct lsm_operations.
+
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
struct lov_mds_md *lmm);
};
-extern struct lsm_operations lsm_v1_ops;
-extern struct lsm_operations lsm_join_ops;
-extern struct lsm_operations lsm_v3_ops;
-static inline struct lsm_operations *lsm_op_find(int magic)
+extern const struct lsm_operations lsm_v1_ops;
+extern const struct lsm_operations lsm_join_ops;
+extern const struct lsm_operations lsm_v3_ops;
+static inline const struct lsm_operations *lsm_op_find(int magic)
{
switch(magic) {
case LOV_MAGIC_V1:
return 0;
}
-struct lsm_operations lsm_v1_ops = {
+const struct lsm_operations lsm_v1_ops = {
.lsm_free = lsm_free_plain,
.lsm_destroy = lsm_destroy_plain,
.lsm_stripe_by_index = lsm_stripe_by_index_plain,
RETURN(rc);
}
-struct lsm_operations lsm_join_ops = {
+const struct lsm_operations lsm_join_ops = {
.lsm_free = lsm_free_join,
.lsm_destroy = lsm_destroy_join,
.lsm_stripe_by_index = lsm_stripe_by_index_join,
return 0;
}
-struct lsm_operations lsm_v3_ops = {
+const struct lsm_operations lsm_v3_ops = {
.lsm_free = lsm_free_plain,
.lsm_destroy = lsm_destroy_plain,
.lsm_stripe_by_index = lsm_stripe_by_index_plain,