diff options
-rw-r--r-- | fs/ocfs2/cluster/heartbeat.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/cluster/masklog.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index d13385448168..eb9d48746ab4 100644 --- a/fs/ocfs2/cluster/heartbeat.c +++ b/fs/ocfs2/cluster/heartbeat.c | |||
@@ -2244,7 +2244,7 @@ ssize_t o2hb_heartbeat_group_mode_store(struct o2hb_heartbeat_group *group, | |||
2244 | return -EINVAL; | 2244 | return -EINVAL; |
2245 | 2245 | ||
2246 | for (i = 0; i < O2HB_HEARTBEAT_NUM_MODES; ++i) { | 2246 | for (i = 0; i < O2HB_HEARTBEAT_NUM_MODES; ++i) { |
2247 | if (strnicmp(page, o2hb_heartbeat_mode_desc[i], len)) | 2247 | if (strncasecmp(page, o2hb_heartbeat_mode_desc[i], len)) |
2248 | continue; | 2248 | continue; |
2249 | 2249 | ||
2250 | ret = o2hb_global_heartbeat_mode_set(i); | 2250 | ret = o2hb_global_heartbeat_mode_set(i); |
diff --git a/fs/ocfs2/cluster/masklog.c b/fs/ocfs2/cluster/masklog.c index 07ac24fd9252..af7598bff1b5 100644 --- a/fs/ocfs2/cluster/masklog.c +++ b/fs/ocfs2/cluster/masklog.c | |||
@@ -49,13 +49,13 @@ static ssize_t mlog_mask_show(u64 mask, char *buf) | |||
49 | 49 | ||
50 | static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) | 50 | static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) |
51 | { | 51 | { |
52 | if (!strnicmp(buf, "allow", 5)) { | 52 | if (!strncasecmp(buf, "allow", 5)) { |
53 | __mlog_set_u64(mask, mlog_and_bits); | 53 | __mlog_set_u64(mask, mlog_and_bits); |
54 | __mlog_clear_u64(mask, mlog_not_bits); | 54 | __mlog_clear_u64(mask, mlog_not_bits); |
55 | } else if (!strnicmp(buf, "deny", 4)) { | 55 | } else if (!strncasecmp(buf, "deny", 4)) { |
56 | __mlog_set_u64(mask, mlog_not_bits); | 56 | __mlog_set_u64(mask, mlog_not_bits); |
57 | __mlog_clear_u64(mask, mlog_and_bits); | 57 | __mlog_clear_u64(mask, mlog_and_bits); |
58 | } else if (!strnicmp(buf, "off", 3)) { | 58 | } else if (!strncasecmp(buf, "off", 3)) { |
59 | __mlog_clear_u64(mask, mlog_not_bits); | 59 | __mlog_clear_u64(mask, mlog_not_bits); |
60 | __mlog_clear_u64(mask, mlog_and_bits); | 60 | __mlog_clear_u64(mask, mlog_and_bits); |
61 | } else | 61 | } else |