From: Jan Kara <jack@suse.cz>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] const: struct quota_format_ops
Date: Tue, 27 Oct 2009 11:54:31 +0100 [thread overview]
Message-ID: <20091027105430.GD4285@duck.suse.cz> (raw)
In-Reply-To: <20091016112603.GA32474@x200>
On Fri 16-10-09 15:26:03, Alexey Dobriyan wrote:
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Thanks. Merged into my tree. I plan to push it to Linus in the next merge
window.
Honza
> ---
>
> fs/ocfs2/quota_local.c | 2 +-
> fs/quota/quota_v1.c | 2 +-
> fs/quota/quota_v2.c | 2 +-
> include/linux/quota.h | 4 ++--
> 4 files changed, 5 insertions(+), 5 deletions(-)
>
> --- a/fs/ocfs2/quota_local.c
> +++ b/fs/ocfs2/quota_local.c
> @@ -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,
> --- a/fs/quota/quota_v1.c
> +++ b/fs/quota/quota_v1.c
> @@ -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,
> --- a/fs/quota/quota_v2.c
> +++ b/fs/quota/quota_v2.c
> @@ -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,
> --- a/include/linux/quota.h
> +++ b/include/linux/quota.h
> @@ -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;
> };
> @@ -383,7 +383,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);
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
prev parent reply other threads:[~2009-10-27 10:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-16 11:26 [PATCH] const: struct quota_format_ops Alexey Dobriyan
2009-10-27 10:54 ` Jan Kara [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091027105430.GD4285@duck.suse.cz \
--to=jack@suse.cz \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox