diff options
author | David Sterba <dsterba@suse.cz> | 2015-01-02 17:23:10 (GMT) |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-02-16 17:48:44 (GMT) |
commit | e8c9f18603f7ce2beca233401e228de730f121fa (patch) | |
tree | 33df6dd1661f9a25a167f011a7669db44b588e5b /fs/btrfs/disk-io.c | |
parent | f749303bda20392e1d4a10adda84524365afd0e6 (diff) | |
download | linux-e8c9f18603f7ce2beca233401e228de730f121fa.tar.xz |
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/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index ed5dcfe..83671f8 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -54,7 +54,7 @@ #include <asm/cpufeature.h> #endif -static struct extent_io_ops btree_extent_io_ops; +static const struct extent_io_ops btree_extent_io_ops; static void end_workqueue_fn(struct btrfs_work *work); static void free_fs_root(struct btrfs_root *root); static int btrfs_check_super_valid(struct btrfs_fs_info *fs_info, @@ -4287,7 +4287,7 @@ static int btrfs_cleanup_transaction(struct btrfs_root *root) return 0; } -static struct extent_io_ops btree_extent_io_ops = { +static const struct extent_io_ops btree_extent_io_ops = { .readpage_end_io_hook = btree_readpage_end_io_hook, .readpage_io_failed_hook = btree_io_failed_hook, .submit_bio_hook = btree_submit_bio_hook, |