From 4bd166682c7a41207e8953e6e9cfc93df4a9b01a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 19 Mar 1996 20:16:11 +0000 Subject: (diskfs_S_dir_rename): Call diskfs_enter_cache if diskfs_direnter/diskfs_dirrewrite is successful. --- libdiskfs/dir-rename.c | 1 + libdiskfs/dir-renamed.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'libdiskfs') diff --git a/libdiskfs/dir-rename.c b/libdiskfs/dir-rename.c index fd15e82e..5273f8fe 100644 --- a/libdiskfs/dir-rename.c +++ b/libdiskfs/dir-rename.c @@ -167,6 +167,7 @@ diskfs_S_dir_rename (struct protid *fromcred, diskfs_nrele (fnp); return err; } + diskfs_enter_cache (tdp, fnp, toname); /* We now hold no locks */ diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c index db4c6ebe..581376de 100644 --- a/libdiskfs/dir-renamed.c +++ b/libdiskfs/dir-renamed.c @@ -190,6 +190,8 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname, if (err) goto out; + diskfs_enter_cache (tdp, fnp, toname); + /* 4: Remove the entry in fdp. */ ds = buf; mutex_unlock (&fnp->lock); -- cgit v1.2.3