From 9caa0b527717ebf1e1309137ef2e1459615dfdb3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 6 Apr 1999 14:07:01 +0000 Subject: Tue Apr 6 10:05:49 1999 Thomas Bushnell, BSG * dir-renamed.c (diskfs_rename_dir): Stage 1, if TNP == FNP, we have to unlock TNP with diskfs_nput and not just diskfs_nrele it. --- libdiskfs/ChangeLog | 5 +++++ libdiskfs/dir-renamed.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog index 8689baa7..c7ff60e8 100644 --- a/libdiskfs/ChangeLog +++ b/libdiskfs/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 6 10:05:49 1999 Thomas Bushnell, BSG + + * dir-renamed.c (diskfs_rename_dir): Stage 1, if TNP == FNP, we + have to unlock TNP with diskfs_nput and not just diskfs_nrele it. + Tue Mar 16 17:20:06 1999 Thomas Bushnell, BSG * lookup.c (diskfs_lookup): Reformat for prettiness. diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c index d01b4f09..3d518eb9 100644 --- a/libdiskfs/dir-renamed.c +++ b/libdiskfs/dir-renamed.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 95, 96, 97, 98 Free Software Foundation, Inc. + Copyright (C) 1994, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -99,7 +99,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, const char *fromname, if (tnp == fnp) { diskfs_drop_dirstat (tdp, ds); - diskfs_nrele (tnp); + diskfs_nput (tnp); mutex_unlock (&tdp->lock); if (fdp != tdp) mutex_unlock (&fdp->lock); -- cgit v1.2.3