aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/logfs.h
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/logfs.h
parentfcntl: allow to set O_DIRECT flag on pipe (diff)
downloadlinux-dev-bc51b2a9193f917f2065313d9971d7d5e867bc81.tar.xz
linux-dev-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/logfs.h')
-rw-r--r--fs/logfs/logfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/logfs/logfs.h b/fs/logfs/logfs.h
index 5f0937609465..5731361eba46 100644
--- a/fs/logfs/logfs.h
+++ b/fs/logfs/logfs.h
@@ -302,7 +302,7 @@ struct logfs_block {
struct inode *inode;
struct logfs_transaction *ta;
unsigned long alias_map[LOGFS_BLOCK_FACTOR / BITS_PER_LONG];
- struct logfs_block_ops *ops;
+ const struct logfs_block_ops *ops;
int full;
int partial;
int reserved_bytes;
@@ -579,7 +579,7 @@ int logfs_exist_block(struct inode *inode, u64 bix);
int get_page_reserve(struct inode *inode, struct page *page);
void logfs_get_wblocks(struct super_block *sb, struct page *page, int lock);
void logfs_put_wblocks(struct super_block *sb, struct page *page, int lock);
-extern struct logfs_block_ops indirect_block_ops;
+extern const struct logfs_block_ops indirect_block_ops;
/* segment.c */
int logfs_erase_segment(struct super_block *sb, u32 ofs, int ensure_erase);