OrangeFS: constify export_operations structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 1 Jan 2016 09:01:52 +0000 (10:01 +0100)
committerMike Marshall <hubcap@omnibond.com>
Mon, 4 Jan 2016 16:06:12 +0000 (11:06 -0500)
This export_operations structure is never modified, so declare it as const.
Most other structures of this type are already const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/super.c

index 52bc522..bee67b3 100644 (file)
@@ -342,7 +342,7 @@ out:
        return type;
 }
 
-static struct export_operations orangefs_export_ops = {
+static const struct export_operations orangefs_export_ops = {
        .encode_fh = orangefs_encode_fh,
        .fh_to_dentry = orangefs_fh_to_dentry,
 };