constify dentry_operations: autofs, autofs4
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Feb 2009 05:56:19 +0000 (05:56 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:44:00 +0000 (14:44 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs/root.c
fs/autofs4/inode.c
fs/autofs4/root.c

index 8aacade56956ec650daaa537e76370724277b765..4a1401cea0a1737e45b19d4d7850fe17da55282d 100644 (file)
@@ -192,7 +192,7 @@ static int autofs_revalidate(struct dentry * dentry, struct nameidata *nd)
        return 1;
 }
 
-static struct dentry_operations autofs_dentry_operations = {
+static const struct dentry_operations autofs_dentry_operations = {
        .d_revalidate   = autofs_revalidate,
 };
 
index 716e12b627b239d23176551ffec355e0813ad6dc..69c8142da8386577cba280ba13d229db16067580 100644 (file)
@@ -310,7 +310,7 @@ static struct autofs_info *autofs4_mkroot(struct autofs_sb_info *sbi)
        return ino;
 }
 
-static struct dentry_operations autofs4_sb_dentry_operations = {
+static const struct dentry_operations autofs4_sb_dentry_operations = {
        .d_release      = autofs4_dentry_release,
 };
 
index 2a41c2a7fc521fd1f5bac1043077a146ef57c417..74b1469a950452ba86f661b79c1390d03c464857 100644 (file)
@@ -349,13 +349,13 @@ void autofs4_dentry_release(struct dentry *de)
 }
 
 /* For dentries of directories in the root dir */
-static struct dentry_operations autofs4_root_dentry_operations = {
+static const struct dentry_operations autofs4_root_dentry_operations = {
        .d_revalidate   = autofs4_revalidate,
        .d_release      = autofs4_dentry_release,
 };
 
 /* For other dentries */
-static struct dentry_operations autofs4_dentry_operations = {
+static const struct dentry_operations autofs4_dentry_operations = {
        .d_revalidate   = autofs4_revalidate,
        .d_release      = autofs4_dentry_release,
 };