diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-03-19 20:16:11 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-03-19 20:16:11 +0000 |
commit | 4bd166682c7a41207e8953e6e9cfc93df4a9b01a (patch) | |
tree | 5c80d7286d9ecbbf17882a87d4b855d70a5ac713 /libdiskfs | |
parent | 6a653653efaf0ccded25d2faeaa947161d73c099 (diff) |
(diskfs_S_dir_rename): Call diskfs_enter_cache if
diskfs_direnter/diskfs_dirrewrite is successful.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-rename.c | 1 | ||||
-rw-r--r-- | libdiskfs/dir-renamed.c | 2 |
2 files changed, 3 insertions, 0 deletions
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); |