diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-01-01 10:53:37 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-01-04 12:58:35 +0300 |
commit | d1b98c23f7547cc37c8f230acbedb26f0d47e9e1 (patch) | |
tree | 623c7c98dfcb95e240b59ca21c724263125a295d /fs/quota | |
parent | 4f1b1519f7bec44ded3c2c4d46a2594c01446dc8 (diff) | |
download | linux-d1b98c23f7547cc37c8f230acbedb26f0d47e9e1.tar.xz |
quota: constify qtree_fmt_operations structures
The qtree_fmt_operations structures are never modified, so declare them as
const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/quota_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/quota/quota_v2.c b/fs/quota/quota_v2.c index 2aa012a68e90..ed85d4f35c04 100644 --- a/fs/quota/quota_v2.c +++ b/fs/quota/quota_v2.c @@ -30,13 +30,13 @@ static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot); static void v2r1_disk2memdqb(struct dquot *dquot, void *dp); static int v2r1_is_id(void *dp, struct dquot *dquot); -static struct qtree_fmt_operations v2r0_qtree_ops = { +static const struct qtree_fmt_operations v2r0_qtree_ops = { .mem2disk_dqblk = v2r0_mem2diskdqb, .disk2mem_dqblk = v2r0_disk2memdqb, .is_id = v2r0_is_id, }; -static struct qtree_fmt_operations v2r1_qtree_ops = { +static const struct qtree_fmt_operations v2r1_qtree_ops = { .mem2disk_dqblk = v2r1_mem2diskdqb, .disk2mem_dqblk = v2r1_disk2memdqb, .is_id = v2r1_is_id, |