Commit 19880e6e authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Jaegeuk Kim

f2fs: make "f2fs_fault_name[]" const char *

Those strings are immutable.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 0ea295dd
......@@ -67,7 +67,7 @@ struct f2fs_fault_info {
unsigned int inject_type;
};
extern char *f2fs_fault_name[FAULT_MAX];
extern const char *f2fs_fault_name[FAULT_MAX];
#define IS_FAULT_SET(fi, type) ((fi)->inject_type & (1 << (type)))
#endif
......
......@@ -38,7 +38,7 @@ static struct kmem_cache *f2fs_inode_cachep;
#ifdef CONFIG_F2FS_FAULT_INJECTION
char *f2fs_fault_name[FAULT_MAX] = {
const char *f2fs_fault_name[FAULT_MAX] = {
[FAULT_KMALLOC] = "kmalloc",
[FAULT_KVMALLOC] = "kvmalloc",
[FAULT_PAGE_ALLOC] = "page alloc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment