diff options
author | David Sterba <dsterba@suse.cz> | 2015-01-02 18:23:10 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-02-16 18:48:44 +0100 |
commit | e8c9f18603f7ce2beca233401e228de730f121fa (patch) | |
tree | 33df6dd1661f9a25a167f011a7669db44b588e5b /fs/btrfs/lzo.c | |
parent | f749303bda20392e1d4a10adda84524365afd0e6 (diff) | |
download | linux-e8c9f18603f7ce2beca233401e228de730f121fa.tar.bz2 |
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/lzo.c')
-rw-r--r-- | fs/btrfs/lzo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index 617553cdb7d3..a2f051347731 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs/lzo.c @@ -434,7 +434,7 @@ out: return ret; } -struct btrfs_compress_op btrfs_lzo_compress = { +const struct btrfs_compress_op btrfs_lzo_compress = { .alloc_workspace = lzo_alloc_workspace, .free_workspace = lzo_free_workspace, .compress_pages = lzo_compress_pages, |