const: make struct super_block::dq_op const
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 22 Sep 2009 00:01:08 +0000 (17:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:24 +0000 (07:17 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext3/super.c
fs/ext4/super.c
fs/ocfs2/quota.h
fs/ocfs2/quota_global.c
fs/quota/dquot.c
fs/reiserfs/super.c
include/linux/fs.h
include/linux/quotaops.h

index a8d80a7f11050d7a518e79ac003701d12865b3a7..e7a4e11352d2137e968754aeda93679ac8b907e6 100644 (file)
@@ -720,7 +720,7 @@ static ssize_t ext3_quota_read(struct super_block *sb, int type, char *data,
 static ssize_t ext3_quota_write(struct super_block *sb, int type,
                                const char *data, size_t len, loff_t off);
 
-static struct dquot_operations ext3_quota_operations = {
+static const struct dquot_operations ext3_quota_operations = {
        .initialize     = dquot_initialize,
        .drop           = dquot_drop,
        .alloc_space    = dquot_alloc_space,
index a6b1ab7347287e120abd4c3fe4a8de79a284e40c..7ffb62eca4b24ee63e584deb896474c11e75ecff 100644 (file)
@@ -964,7 +964,7 @@ static ssize_t ext4_quota_read(struct super_block *sb, int type, char *data,
 static ssize_t ext4_quota_write(struct super_block *sb, int type,
                                const char *data, size_t len, loff_t off);
 
-static struct dquot_operations ext4_quota_operations = {
+static const struct dquot_operations ext4_quota_operations = {
        .initialize     = dquot_initialize,
        .drop           = dquot_drop,
        .alloc_space    = dquot_alloc_space,
index 3fb96fcd4c81cd185db0e7b5132f831c322dedca..e5df9d170b0cbd6cc8541f68fda5d34a1f62c7f5 100644 (file)
@@ -109,7 +109,7 @@ void ocfs2_unlock_global_qf(struct ocfs2_mem_dqinfo *oinfo, int ex);
 int ocfs2_read_quota_block(struct inode *inode, u64 v_block,
                           struct buffer_head **bh);
 
-extern struct dquot_operations ocfs2_quota_operations;
+extern const struct dquot_operations ocfs2_quota_operations;
 extern struct quota_format_type ocfs2_quota_format;
 
 int ocfs2_quota_setup(void);
index 44f2a5e1d04233bae9fc5b72bf894cbdd67461f2..3af4954d537bdb63d1cd7cb01236828e2dd3f0fa 100644 (file)
@@ -849,7 +849,7 @@ static void ocfs2_destroy_dquot(struct dquot *dquot)
        kmem_cache_free(ocfs2_dquot_cachep, dquot);
 }
 
-struct dquot_operations ocfs2_quota_operations = {
+const struct dquot_operations ocfs2_quota_operations = {
        .initialize     = dquot_initialize,
        .drop           = dquot_drop,
        .alloc_space    = dquot_alloc_space,
index 38f7bd559f35eff8c690cebaf50958f352bd02d1..635ae2e535bf2155ac027d0f1740ee38a7256faf 100644 (file)
@@ -1839,7 +1839,7 @@ EXPORT_SYMBOL(dquot_commit_info);
 /*
  * Definitions of diskquota operations.
  */
-struct dquot_operations dquot_operations = {
+const struct dquot_operations dquot_operations = {
        .initialize     = dquot_initialize,
        .drop           = dquot_drop,
        .alloc_space    = dquot_alloc_space,
index 7adea74d6a8ac829d3c1efb877b9feec5027ccaa..09c93c12874bd171f456d4008f054ef65dd4309a 100644 (file)
@@ -612,7 +612,7 @@ static int reiserfs_mark_dquot_dirty(struct dquot *);
 static int reiserfs_write_info(struct super_block *, int);
 static int reiserfs_quota_on(struct super_block *, int, int, char *, int);
 
-static struct dquot_operations reiserfs_quota_operations = {
+static const struct dquot_operations reiserfs_quota_operations = {
        .initialize = dquot_initialize,
        .drop = dquot_drop,
        .alloc_space = dquot_alloc_space,
index 90162fb3bf044cfaba959679ca048ea3e66e397a..83e1a0cea97a2784e4c2f2856165e2ebdd495a1b 100644 (file)
@@ -1318,7 +1318,7 @@ struct super_block {
        unsigned long long      s_maxbytes;     /* Max file size */
        struct file_system_type *s_type;
        const struct super_operations   *s_op;
-       struct dquot_operations *dq_op;
+       const struct dquot_operations   *dq_op;
        struct quotactl_ops     *s_qcop;
        const struct export_operations *s_export_op;
        unsigned long           s_flags;
index 26361c4c037a15f24feb2952070de8d1a9b2eab5..8dcbdb6e10190aed5b4ed6654348cd31f1abcf56 100644 (file)
@@ -135,7 +135,7 @@ static inline int sb_any_quota_active(struct super_block *sb)
 /*
  * Operations supported for diskquotas.
  */
-extern struct dquot_operations dquot_operations;
+extern const struct dquot_operations dquot_operations;
 extern struct quotactl_ops vfs_quotactl_ops;
 
 #define sb_dquot_ops (&dquot_operations)