diff options
author | Miles Bader <miles@gnu.org> | 1996-06-25 21:28:30 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-06-25 21:28:30 +0000 |
commit | c7d3781456ba9da865406ad02900012eb8b71e54 (patch) | |
tree | be11fbda555c8b56aee9564499d71da8cd433ef6 /ext2fs | |
parent | ad04fae96a8643a36f21324a2ccec6f917a99c26 (diff) |
(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.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/ext2fs.h | 14 |
1 files changed, 3 insertions, 11 deletions
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); } } |