From c7d3781456ba9da865406ad02900012eb8b71e54 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 25 Jun 1996 21:28:30 +0000 Subject: (sync_global): Renamed from sync_global_data. Add WAIT flag. Don't call diskfs_set_hypermetadata. (alloc_sync): Call diskfs_set_hypermetadata instead of sync_global_data. (sync_super_block): Function removed. --- ext2fs/ext2fs.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'ext2fs/ext2fs.h') diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h index 302a0c94..8a4bde9d 100644 --- a/ext2fs/ext2fs.h +++ b/ext2fs/ext2fs.h @@ -380,17 +380,9 @@ record_indir_poke (struct node *node, void *ptr) /* ---------------------------------------------------------------- */ extern inline void -sync_super_block () +sync_global (int wait) { - sblock_dirty = 0; /* It doesn't matter if this gets stomped. */ - sync_global_ptr (sblock, 1); -} - -extern inline void -sync_global_data () -{ - pokel_sync (&global_pokel, 1); - diskfs_set_hypermetadata (1, 0); + pokel_sync (&global_pokel, wait); } /* Sync all allocation information and node NP if diskfs_synchronous. */ @@ -404,7 +396,7 @@ alloc_sync (struct node *np) diskfs_node_update (np, 1); pokel_sync (&np->dn->indir_pokel, 1); } - sync_global_data (); + diskfs_set_hypermetadata (1, 0); } } -- cgit v1.2.3