diff options
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); |