diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-04-06 14:07:01 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-04-06 14:07:01 +0000 |
commit | 9caa0b527717ebf1e1309137ef2e1459615dfdb3 (patch) | |
tree | 3d068d7497163a4d8d2e0e7d4f9299f9c3fa6ec0 | |
parent | a6f0bf7b3250751d7312b73d2c0b3b81d5d7bfd9 (diff) |
Tue Apr 6 10:05:49 1999 Thomas Bushnell, BSG <tb@mit.edu>
* 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.
-rw-r--r-- | libdiskfs/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <tb@mit.edu> + + * 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 <tb@mit.edu> * 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); |