summaryrefslogtreecommitdiff
path: root/lib/ext2fs/swapfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext2fs/swapfs.c')
-rw-r--r--lib/ext2fs/swapfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c
index 5e6b22f4..fe764b9e 100644
--- a/lib/ext2fs/swapfs.c
+++ b/lib/ext2fs/swapfs.c
@@ -131,8 +131,9 @@ void ext2fs_swap_super(struct ext2_super_block * sb)
/* s_*_time_hi are __u8 and does not need swabbing */
sb->s_encoding = ext2fs_swab16(sb->s_encoding);
sb->s_encoding_flags = ext2fs_swab16(sb->s_encoding_flags);
+ sb->s_orphan_file_inum = ext2fs_swab32(sb->s_orphan_file_inum);
/* catch when new fields are used from s_reserved */
- EXT2FS_BUILD_BUG_ON(sizeof(sb->s_reserved) != 95 * sizeof(__le32));
+ EXT2FS_BUILD_BUG_ON(sizeof(sb->s_reserved) != 94 * sizeof(__le32));
sb->s_checksum = ext2fs_swab32(sb->s_checksum);
}