summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
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/transaction.c
parentf749303bda20392e1d4a10adda84524365afd0e6 (diff)
downloadop-kernel-dev-e8c9f18603f7ce2beca233401e228de730f121fa.zip
op-kernel-dev-e8c9f18603f7ce2beca233401e228de730f121fa.tar.gz
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/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 038fcf6..dde9d28 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -35,7 +35,7 @@
#define BTRFS_ROOT_TRANS_TAG 0
-static unsigned int btrfs_blocked_trans_types[TRANS_STATE_MAX] = {
+static const unsigned int btrfs_blocked_trans_types[TRANS_STATE_MAX] = {
[TRANS_STATE_RUNNING] = 0U,
[TRANS_STATE_BLOCKED] = (__TRANS_USERSPACE |
__TRANS_START),
OpenPOWER on IntegriCloud