summaryrefslogtreecommitdiff
path: root/fs/gfs2/eaops.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-07-31 18:31:11 +0800
committerSteven Whitehouse <swhiteho@redhat.com>2007-10-10 08:55:03 +0100
commit4ef290025ccde7c52ba219cf733a4295acd5401f (patch)
tree9879ae00580d4869bfa0a443f00b3713c34f4bda /fs/gfs2/eaops.c
parent0f8468c8bef3d04637c924e7bef20ca53018b319 (diff)
downloadlwn-4ef290025ccde7c52ba219cf733a4295acd5401f.tar.gz
lwn-4ef290025ccde7c52ba219cf733a4295acd5401f.zip
[GFS2] mark struct *_operations const
these struct *_operations are all method tables, thus should be const. Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/eaops.c')
-rw-r--r--fs/gfs2/eaops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/eaops.c b/fs/gfs2/eaops.c
index 1ab3e9d73886..aa8dbf303f6d 100644
--- a/fs/gfs2/eaops.c
+++ b/fs/gfs2/eaops.c
@@ -200,28 +200,28 @@ static int security_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er)
return gfs2_ea_remove_i(ip, er);
}
-static struct gfs2_eattr_operations gfs2_user_eaops = {
+static const struct gfs2_eattr_operations gfs2_user_eaops = {
.eo_get = user_eo_get,
.eo_set = user_eo_set,
.eo_remove = user_eo_remove,
.eo_name = "user",
};
-struct gfs2_eattr_operations gfs2_system_eaops = {
+const struct gfs2_eattr_operations gfs2_system_eaops = {
.eo_get = system_eo_get,
.eo_set = system_eo_set,
.eo_remove = system_eo_remove,
.eo_name = "system",
};
-static struct gfs2_eattr_operations gfs2_security_eaops = {
+static const struct gfs2_eattr_operations gfs2_security_eaops = {
.eo_get = security_eo_get,
.eo_set = security_eo_set,
.eo_remove = security_eo_remove,
.eo_name = "security",
};
-struct gfs2_eattr_operations *gfs2_ea_ops[] = {
+const struct gfs2_eattr_operations *gfs2_ea_ops[] = {
NULL,
&gfs2_user_eaops,
&gfs2_system_eaops,