[PATCH 1/1] fs/ext4/super.c: use UINT_MAX instead of ~0U

From: Fabian Frederick
Date: Tue Jun 03 2014 - 15:18:15 EST


Use kernel.h definition

Cc: "Theodore Ts'o" <tytso@xxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
fs/ext4/super.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 6f9e6fa..441f65f 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3573,9 +3573,9 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
(test_opt(sb, POSIX_ACL) ? MS_POSIXACL : 0);

if (le32_to_cpu(es->s_rev_level) == EXT4_GOOD_OLD_REV &&
- (EXT4_HAS_COMPAT_FEATURE(sb, ~0U) ||
- EXT4_HAS_RO_COMPAT_FEATURE(sb, ~0U) ||
- EXT4_HAS_INCOMPAT_FEATURE(sb, ~0U)))
+ (EXT4_HAS_COMPAT_FEATURE(sb, UINT_MAX) ||
+ EXT4_HAS_RO_COMPAT_FEATURE(sb, UINT_MAX) ||
+ EXT4_HAS_INCOMPAT_FEATURE(sb, UINT_MAX)))
ext4_msg(sb, KERN_WARNING,
"feature flags set on rev 0 fs, "
"running e2fsck is recommended");
--
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/