constify dentry_operations: rest
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Feb 2009 06:02:22 +0000 (06:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:44:03 +0000 (14:44 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/kernel/perfmon.c
fs/anon_inodes.c
fs/libfs.c
fs/pipe.c
kernel/cgroup.c
net/socket.c
net/sunrpc/rpc_pipe.c

index 0e499757309bfbdab35d1233126e4259d9f42bdd..5c0f408cfd719f02ded2c58dc6ebf2b3c181c7b5 100644 (file)
@@ -2196,7 +2196,7 @@ pfmfs_delete_dentry(struct dentry *dentry)
        return 1;
 }
 
-static struct dentry_operations pfmfs_dentry_operations = {
+static const struct dentry_operations pfmfs_dentry_operations = {
        .d_delete = pfmfs_delete_dentry,
 };
 
index 3bbdb9d023767a142f8917bc793437abf586f211..1dd96d4406c09dde60b038a0eb5900606d59e18c 100644 (file)
@@ -48,7 +48,7 @@ static struct file_system_type anon_inode_fs_type = {
        .get_sb         = anon_inodefs_get_sb,
        .kill_sb        = kill_anon_super,
 };
-static struct dentry_operations anon_inodefs_dentry_operations = {
+static const struct dentry_operations anon_inodefs_dentry_operations = {
        .d_delete       = anon_inodefs_delete_dentry,
 };
 
index 49b44099dabbb9cef010c2394c8ba110440edee4..ec600bd33e75b041c133532eae6cd6c88923db48 100644 (file)
@@ -44,7 +44,7 @@ static int simple_delete_dentry(struct dentry *dentry)
  */
 struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
 {
-       static struct dentry_operations simple_dentry_operations = {
+       static const struct dentry_operations simple_dentry_operations = {
                .d_delete = simple_delete_dentry,
        };
 
index df3719562fc1c9b96b75edea9544538c02208f44..6ddf05209a4ca2d32f93772b4a74a3a570242203 100644 (file)
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -870,7 +870,7 @@ static char *pipefs_dname(struct dentry *dentry, char *buffer, int buflen)
                                dentry->d_inode->i_ino);
 }
 
-static struct dentry_operations pipefs_dentry_operations = {
+static const struct dentry_operations pipefs_dentry_operations = {
        .d_delete       = pipefs_delete_dentry,
        .d_dname        = pipefs_dname,
 };
index 9edb5c4b79b4f1a88a0487f588c36fc6207f54a9..b01100ebd074673986ebb694004af973a172430d 100644 (file)
@@ -1627,7 +1627,7 @@ static struct inode_operations cgroup_dir_inode_operations = {
 static int cgroup_create_file(struct dentry *dentry, int mode,
                                struct super_block *sb)
 {
-       static struct dentry_operations cgroup_dops = {
+       static const struct dentry_operations cgroup_dops = {
                .d_iput = cgroup_diput,
        };
 
index 35dd7371752a9448ff6162af9255ac0b0891ec35..2f895f60ca8a83b3763ad2425bc335e80438aa6e 100644 (file)
@@ -328,7 +328,7 @@ static char *sockfs_dname(struct dentry *dentry, char *buffer, int buflen)
                                dentry->d_inode->i_ino);
 }
 
-static struct dentry_operations sockfs_dentry_operations = {
+static const struct dentry_operations sockfs_dentry_operations = {
        .d_delete = sockfs_delete_dentry,
        .d_dname  = sockfs_dname,
 };
index 577385a4a5dc51219f1b2d6c8e6dec8568b3c2af..9ced0628d69c35d44aa158b6d615acf8086278c6 100644 (file)
@@ -480,7 +480,7 @@ static int rpc_delete_dentry(struct dentry *dentry)
        return 1;
 }
 
-static struct dentry_operations rpc_dentry_operations = {
+static const struct dentry_operations rpc_dentry_operations = {
        .d_delete = rpc_delete_dentry,
 };