Skip to content

Commit

Permalink
OrangeFS: constify export_operations structures
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
JuliaLawall authored and hubcapsc committed Jan 4, 2016
1 parent f987f4c commit acaca36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static int orangefs_encode_fh(struct inode *inode,
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,
};
Expand Down

0 comments on commit acaca36

Please sign in to comment.