summaryrefslogtreecommitdiff
path: root/include/linux/dqblk_qtree.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-01-01 10:53:37 +0300
committerJan Kara <jack@suse.cz>2016-01-04 12:58:35 +0300
commitd1b98c23f7547cc37c8f230acbedb26f0d47e9e1 (patch)
tree623c7c98dfcb95e240b59ca21c724263125a295d /include/linux/dqblk_qtree.h
parent4f1b1519f7bec44ded3c2c4d46a2594c01446dc8 (diff)
downloadlinux-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 'include/linux/dqblk_qtree.h')
-rw-r--r--include/linux/dqblk_qtree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dqblk_qtree.h b/include/linux/dqblk_qtree.h
index 82a16527b367..ff8b55359648 100644
--- a/include/linux/dqblk_qtree.h
+++ b/include/linux/dqblk_qtree.h
@@ -34,7 +34,7 @@ struct qtree_mem_dqinfo {
unsigned int dqi_entry_size; /* Size of quota entry in quota file */
unsigned int dqi_usable_bs; /* Space usable in block for quota data */
unsigned int dqi_qtree_depth; /* Precomputed depth of quota tree */
- struct qtree_fmt_operations *dqi_ops; /* Operations for entry manipulation */
+ const struct qtree_fmt_operations *dqi_ops; /* Operations for entry manipulation */
};
int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot);