summaryrefslogtreecommitdiffstats
path: root/fs/logfs/segment.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 08:55:45 +0100
commitbc51b2a9193f917f2065313d9971d7d5e867bc81 (patch)
tree3cd83b31fc3f921cdd507aa7bdf016750e0bc9e6 /fs/logfs/segment.c
parentfcntl: allow to set O_DIRECT flag on pipe (diff)
downloadlinux-bc51b2a9193f917f2065313d9971d7d5e867bc81.tar.xz
linux-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/segment.c')
-rw-r--r--fs/logfs/segment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/segment.c b/fs/logfs/segment.c
index 6de0fbfc6c00..d270e4b2ab6b 100644
--- a/fs/logfs/segment.c
+++ b/fs/logfs/segment.c
@@ -197,7 +197,7 @@ static int btree_write_alias(struct super_block *sb, struct logfs_block *block,
return 0;
}
-static struct logfs_block_ops btree_block_ops = {
+static const struct logfs_block_ops btree_block_ops = {
.write_block = btree_write_block,
.free_block = __free_block,
.write_alias = btree_write_alias,