]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
const: struct quota_format_ops
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 16 Oct 2009 11:26:03 +0000 (15:26 +0400)
committerJan Kara <jack@suse.cz>
Thu, 10 Dec 2009 14:02:51 +0000 (15:02 +0100)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota_local.c
fs/quota/quota_v1.c
fs/quota/quota_v2.c
include/linux/quota.h

index 1a2c50a759faaef1f2b5eca5e6d7d865ecdbd47a..21f9e71223caf53b10c3f2b128782aef14169889 100644 (file)
@@ -1325,7 +1325,7 @@ out:
        return status;
 }
 
-static struct quota_format_ops ocfs2_format_ops = {
+static const struct quota_format_ops ocfs2_format_ops = {
        .check_quota_file       = ocfs2_local_check_quota_file,
        .read_file_info         = ocfs2_local_read_info,
        .write_file_info        = ocfs2_global_write_info,
index 0edcf42b177801c48a11d32b7e8ccb6c48fcb025..2ae757e9c008478bde15a0883925378770e6ee95 100644 (file)
@@ -204,7 +204,7 @@ out:
        return ret;
 }
 
-static struct quota_format_ops v1_format_ops = {
+static const struct quota_format_ops v1_format_ops = {
        .check_quota_file       = v1_check_quota_file,
        .read_file_info         = v1_read_file_info,
        .write_file_info        = v1_write_file_info,
index a5475fb1ae4478b62a02b9aae42d82a99a478bad..01f25eae684d858d43254fb33e049af30f134fd7 100644 (file)
@@ -207,7 +207,7 @@ static int v2_free_file_info(struct super_block *sb, int type)
        return 0;
 }
 
-static struct quota_format_ops v2_format_ops = {
+static const struct quota_format_ops v2_format_ops = {
        .check_quota_file       = v2_check_quota_file,
        .read_file_info         = v2_read_file_info,
        .write_file_info        = v2_write_file_info,
index ce9a9b2e5cd44fffbc9afcd8f4f90b692343a88c..f63c9d6ba7843dcb7a4983bf0d44870e534a9a4d 100644 (file)
@@ -334,7 +334,7 @@ struct quotactl_ops {
 
 struct quota_format_type {
        int qf_fmt_id;  /* Quota format id */
-       struct quota_format_ops *qf_ops;        /* Operations of format */
+       const struct quota_format_ops *qf_ops;  /* Operations of format */
        struct module *qf_owner;                /* Module implementing quota format */
        struct quota_format_type *qf_next;
 };
@@ -394,7 +394,7 @@ struct quota_info {
        struct rw_semaphore dqptr_sem;          /* serialize ops using quota_info struct, pointers from inode to dquots */
        struct inode *files[MAXQUOTAS];         /* inodes of quotafiles */
        struct mem_dqinfo info[MAXQUOTAS];      /* Information for each quota type */
-       struct quota_format_ops *ops[MAXQUOTAS];        /* Operations for each type */
+       const struct quota_format_ops *ops[MAXQUOTAS];  /* Operations for each type */
 };
 
 int register_quota_format(struct quota_format_type *fmt);