constify dentry_operations: 9p
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Feb 2009 05:55:46 +0000 (05:55 +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/9p/v9fs_vfs.h
fs/9p/vfs_dentry.c

index c295ba786edd9082dbd9026ef2324a2d684ea1a3..f0c7de78e205b1063fa9d552617c7d17a4123997 100644 (file)
@@ -41,8 +41,8 @@ extern struct file_system_type v9fs_fs_type;
 extern const struct address_space_operations v9fs_addr_operations;
 extern const struct file_operations v9fs_file_operations;
 extern const struct file_operations v9fs_dir_operations;
-extern struct dentry_operations v9fs_dentry_operations;
-extern struct dentry_operations v9fs_cached_dentry_operations;
+extern const struct dentry_operations v9fs_dentry_operations;
+extern const struct dentry_operations v9fs_cached_dentry_operations;
 
 struct inode *v9fs_get_inode(struct super_block *sb, int mode);
 ino_t v9fs_qid2ino(struct p9_qid *qid);
index 06dcc7c4f2343ebb9cced85a8da46c880849794f..d74325295b1e43d74617d89798a8deb78ef6a5d6 100644 (file)
@@ -104,12 +104,12 @@ void v9fs_dentry_release(struct dentry *dentry)
        }
 }
 
-struct dentry_operations v9fs_cached_dentry_operations = {
+const struct dentry_operations v9fs_cached_dentry_operations = {
        .d_delete = v9fs_cached_dentry_delete,
        .d_release = v9fs_dentry_release,
 };
 
-struct dentry_operations v9fs_dentry_operations = {
+const struct dentry_operations v9fs_dentry_operations = {
        .d_delete = v9fs_dentry_delete,
        .d_release = v9fs_dentry_release,
 };