constify dentry_operations: OCFS2
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Feb 2009 06:00:26 +0000 (06:00 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:44:02 +0000 (14:44 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/dcache.c
fs/ocfs2/dcache.h

index e9d7c2038c0f55c1f0cf48386a2f6eed12a2d805..7d604480557afb80a77dc7b4a106a5c9f9b6a43a 100644 (file)
@@ -455,7 +455,7 @@ out_move:
        d_move(dentry, target);
 }
 
-struct dentry_operations ocfs2_dentry_ops = {
+const struct dentry_operations ocfs2_dentry_ops = {
        .d_revalidate           = ocfs2_dentry_revalidate,
        .d_iput                 = ocfs2_dentry_iput,
 };
index d06e16c0664061d7ea7bf4bb319242a890eef68a..faa12e75f98d117a9cf2f7f0bf519a05b83c5401 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef OCFS2_DCACHE_H
 #define OCFS2_DCACHE_H
 
-extern struct dentry_operations ocfs2_dentry_ops;
+extern const struct dentry_operations ocfs2_dentry_ops;
 
 struct ocfs2_dentry_lock {
        /* Use count of dentry lock */