Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 216c34b2 authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Theodore Ts'o
Browse files

ext4: convert byte order of constant instead of variable



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

Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent e8546d06
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1388,7 +1388,7 @@ static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es,
		 * a plain journaled filesystem we can keep it set as
		 * a plain journaled filesystem we can keep it set as
		 * valid forever! :)
		 * valid forever! :)
		 */
		 */
	es->s_state = cpu_to_le16(le16_to_cpu(es->s_state) & ~EXT4_VALID_FS);
	es->s_state &= cpu_to_le16(~EXT4_VALID_FS);
#endif
#endif
	if (!(__s16) le16_to_cpu(es->s_max_mnt_count))
	if (!(__s16) le16_to_cpu(es->s_max_mnt_count))
		es->s_max_mnt_count = cpu_to_le16(EXT4_DFL_MAX_MNT_COUNT);
		es->s_max_mnt_count = cpu_to_le16(EXT4_DFL_MAX_MNT_COUNT);