diff options
-rw-r--r-- | libdiskfs/dir-clear.c | 9 |
1 files changed, 0 insertions, 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; } |