diff options
-rw-r--r-- | fs/ext4/mmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/mmp.c b/fs/ext4/mmp.c index 7ea4ba4eff2a..ed6548d89165 100644 --- a/fs/ext4/mmp.c +++ b/fs/ext4/mmp.c | |||
@@ -257,8 +257,8 @@ int ext4_multi_mount_protect(struct super_block *sb, | |||
257 | * If check_interval in MMP block is larger, use that instead of | 257 | * If check_interval in MMP block is larger, use that instead of |
258 | * update_interval from the superblock. | 258 | * update_interval from the superblock. |
259 | */ | 259 | */ |
260 | if (mmp->mmp_check_interval > mmp_check_interval) | 260 | if (le16_to_cpu(mmp->mmp_check_interval) > mmp_check_interval) |
261 | mmp_check_interval = mmp->mmp_check_interval; | 261 | mmp_check_interval = le16_to_cpu(mmp->mmp_check_interval); |
262 | 262 | ||
263 | seq = le32_to_cpu(mmp->mmp_seq); | 263 | seq = le32_to_cpu(mmp->mmp_seq); |
264 | if (seq == EXT4_MMP_SEQ_CLEAN) | 264 | if (seq == EXT4_MMP_SEQ_CLEAN) |