From 75134ea1a3b0abcef75b699e5f1f09cdda1480d9 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 17 Mar 1995 17:09:56 +0000 Subject: (diskfs_clear_directory): Don't to diskfs_synchronous here. --- libdiskfs/dir-clear.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libdiskfs/dir-clear.c b/libdiskfs/dir-clear.c index 780877df..9d5a6ea0 100644 --- a/libdiskfs/dir-clear.c +++ b/libdiskfs/dir-clear.c @@ -35,8 +35,6 @@ diskfs_clear_directory (struct node *dp, err = diskfs_dirremove (dp, ds); else diskfs_drop_dirstat (dp, ds); - if (diskfs_synchronous) - diskfs_file_update (dp, 1); if (err) return err; @@ -51,8 +49,6 @@ diskfs_clear_directory (struct node *dp, err = diskfs_dirremove (dp, ds); else diskfs_drop_dirstat (dp, ds); - if (diskfs_synchronous) - diskfs_file_update (dp, 1); if (err) return err; @@ -60,12 +56,7 @@ diskfs_clear_directory (struct node *dp, pdp->dn_stat.st_nlink--; pdp->dn_set_ctime = 1; - if (diskfs_synchronous) - diskfs_node_update (pdp, 1); - diskfs_truncate (dp, 0); - if (diskfs_synchronous) - diskfs_file_update (dp, 1); return err; } -- cgit v1.2.3