summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba2015-11-19 11:42:31 +0100
committerDavid Sterba2016-01-07 15:01:15 +0100
commit4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719 (patch)
treeb4402e0388ee13df3bbd6d7f78108436e0dbea6b /fs/btrfs/ctree.h
parentbtrfs: constify remaining structs with function pointers (diff)
downloadkernel-qcow2-linux-4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719.tar.gz
kernel-qcow2-linux-4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719.tar.xz
kernel-qcow2-linux-4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719.zip
btrfs: constify static arrays
There are a few statically initialized arrays that can be made const. The remaining (like file_system_type, sysfs attributes or prop handlers) do not allow that due to type mismatch when passed to the APIs or because the structures are modified through other members. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 35489e7129a7..99059fcb563e 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -174,7 +174,7 @@ struct btrfs_ordered_sum;
/* csum types */
#define BTRFS_CSUM_TYPE_CRC32 0
-static int btrfs_csum_sizes[] = { 4 };
+static const int btrfs_csum_sizes[] = { 4 };
/* four bytes for CRC32 */
#define BTRFS_EMPTY_DIR_SIZE 0