summaryrefslogtreecommitdiff
path: root/fs/logfs/readwrite.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-12-11 17:03:26 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-01-09 02:55:45 -0500
commitbc51b2a9193f917f2065313d9971d7d5e867bc81 (patch)
tree3cd83b31fc3f921cdd507aa7bdf016750e0bc9e6 /fs/logfs/readwrite.c
parent0dbf5f20652108106cb822ad7662c786baaa03ff (diff)
downloadlwn-bc51b2a9193f917f2065313d9971d7d5e867bc81.tar.gz
lwn-bc51b2a9193f917f2065313d9971d7d5e867bc81.zip
logfs: constify logfs_block_ops structures
The logfs_block_ops 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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/logfs/readwrite.c')
-rw-r--r--fs/logfs/readwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c
index 380d86e1ab45..20973c9e52f8 100644
--- a/fs/logfs/readwrite.c
+++ b/fs/logfs/readwrite.c
@@ -569,13 +569,13 @@ static void indirect_free_block(struct super_block *sb,
}
-static struct logfs_block_ops inode_block_ops = {
+static const struct logfs_block_ops inode_block_ops = {
.write_block = inode_write_block,
.free_block = inode_free_block,
.write_alias = inode_write_alias,
};
-struct logfs_block_ops indirect_block_ops = {
+const struct logfs_block_ops indirect_block_ops = {
.write_block = indirect_write_block,
.free_block = indirect_free_block,
.write_alias = indirect_write_alias,