Skip to contentSkip to conversation

ext3: convert byte order of constant instead of variable

PATCH New [email protected] 1 participant 1 message Apr 28, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 268/307 ext3: convert byte order of constant instead of variable

From: Marcin Slusarz <[email protected]>

Convert byte order of constant instead of variable which can be done at compile time (vs run time).

---

 fs/ext3/super.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext3/super.c renamed from fs/ext3/super.c~ext3-convert-byte-order-of-constant-instead-of-variable +1 -1
diff -puN fs/ext3/super.c~ext3-convert-byte-order-of-constant-instead-of-variable fs/ext3/super.c
@@ -1219,7 +1219,7 @@ static int ext3_setup_super(struct super
                    inconsistencies, to force a fsck at reboot.  But for
                    a plain journaled filesystem we can keep it set as
                    valid forever! :) */
-	es->s_state = cpu_to_le16(le16_to_cpu(es->s_state) & ~EXT3_VALID_FS);
+	es->s_state &= cpu_to_le16(~EXT3_VALID_FS);
 #endif
 	if (!(__s16) le16_to_cpu(es->s_max_mnt_count))
 		es->s_max_mnt_count = cpu_to_le16(EXT3_DFL_MAX_MNT_COUNT);

_