aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/closefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/ext2fs/closefs.c')
-rw-r--r--e2fsprogs/ext2fs/closefs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/e2fsprogs/ext2fs/closefs.c b/e2fsprogs/ext2fs/closefs.c
index da0016b0e..481d1c575 100644
--- a/e2fsprogs/ext2fs/closefs.c
+++ b/e2fsprogs/ext2fs/closefs.c
@@ -191,7 +191,7 @@ static errcode_t write_backup_super(ext2_filsys fs, dgrp_t group,
191 191
192 if (sgrp > ((1 << 16) - 1)) 192 if (sgrp > ((1 << 16) - 1))
193 sgrp = (1 << 16) - 1; 193 sgrp = (1 << 16) - 1;
194#ifdef EXT2FS_ENABLE_SWAPFS 194#if BB_BIG_ENDIAN
195 if (fs->flags & EXT2_FLAG_SWAP_BYTES) 195 if (fs->flags & EXT2_FLAG_SWAP_BYTES)
196 super_shadow->s_block_group_nr = ext2fs_swab16(sgrp); 196 super_shadow->s_block_group_nr = ext2fs_swab16(sgrp);
197 else 197 else
@@ -213,7 +213,7 @@ errcode_t ext2fs_flush(ext2_filsys fs)
213 struct ext2_group_desc *group_shadow = 0; 213 struct ext2_group_desc *group_shadow = 0;
214 char *group_ptr; 214 char *group_ptr;
215 int old_desc_blocks; 215 int old_desc_blocks;
216#ifdef EXT2FS_ENABLE_SWAPFS 216#if BB_BIG_ENDIAN
217 dgrp_t j; 217 dgrp_t j;
218 struct ext2_group_desc *s, *t; 218 struct ext2_group_desc *s, *t;
219#endif 219#endif
@@ -224,7 +224,7 @@ errcode_t ext2fs_flush(ext2_filsys fs)
224 224
225 fs->super->s_wtime = time(NULL); 225 fs->super->s_wtime = time(NULL);
226 fs->super->s_block_group_nr = 0; 226 fs->super->s_block_group_nr = 0;
227#ifdef EXT2FS_ENABLE_SWAPFS 227#if BB_BIG_ENDIAN
228 if (fs->flags & EXT2_FLAG_SWAP_BYTES) { 228 if (fs->flags & EXT2_FLAG_SWAP_BYTES) {
229 retval = EXT2_ET_NO_MEMORY; 229 retval = EXT2_ET_NO_MEMORY;
230 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &super_shadow); 230 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &super_shadow);
@@ -267,7 +267,7 @@ errcode_t ext2fs_flush(ext2_filsys fs)
267 * we write out the backup superblocks.) 267 * we write out the backup superblocks.)
268 */ 268 */
269 fs->super->s_state &= ~EXT2_VALID_FS; 269 fs->super->s_state &= ~EXT2_VALID_FS;
270#ifdef EXT2FS_ENABLE_SWAPFS 270#if BB_BIG_ENDIAN
271 if (fs->flags & EXT2_FLAG_SWAP_BYTES) { 271 if (fs->flags & EXT2_FLAG_SWAP_BYTES) {
272 *super_shadow = *fs->super; 272 *super_shadow = *fs->super;
273 ext2fs_swap_super(super_shadow); 273 ext2fs_swap_super(super_shadow);
@@ -316,7 +316,7 @@ errcode_t ext2fs_flush(ext2_filsys fs)
316 } 316 }
317 fs->super->s_block_group_nr = 0; 317 fs->super->s_block_group_nr = 0;
318 fs->super->s_state = fs_state; 318 fs->super->s_state = fs_state;
319#ifdef EXT2FS_ENABLE_SWAPFS 319#if BB_BIG_ENDIAN
320 if (fs->flags & EXT2_FLAG_SWAP_BYTES) { 320 if (fs->flags & EXT2_FLAG_SWAP_BYTES) {
321 *super_shadow = *fs->super; 321 *super_shadow = *fs->super;
322 ext2fs_swap_super(super_shadow); 322 ext2fs_swap_super(super_shadow);