summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-02 18:23:10 +0100
committerDavid Sterba <dsterba@suse.cz>2015-02-16 18:48:44 +0100
commite8c9f18603f7ce2beca233401e228de730f121fa (patch)
tree33df6dd1661f9a25a167f011a7669db44b588e5b /fs/btrfs/compression.h
parentf749303bda20392e1d4a10adda84524365afd0e6 (diff)
downloadblackbird-op-linux-e8c9f18603f7ce2beca233401e228de730f121fa.tar.gz
blackbird-op-linux-e8c9f18603f7ce2beca233401e228de730f121fa.zip
btrfs: constify structs with op functions or static definitions
There are some op tables that can be easily made const, similarly the sysfs feature and raid tables. This is motivated by PaX CONSTIFY plugin. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index d181f70caae0..13a4dc0436c9 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -77,7 +77,7 @@ struct btrfs_compress_op {
size_t srclen, size_t destlen);
};
-extern struct btrfs_compress_op btrfs_zlib_compress;
-extern struct btrfs_compress_op btrfs_lzo_compress;
+extern const struct btrfs_compress_op btrfs_zlib_compress;
+extern const struct btrfs_compress_op btrfs_lzo_compress;
#endif
OpenPOWER on IntegriCloud