summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-03 22:08:45 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-03 22:08:45 +0000
commit9147acaefe77cf1ec4d34c17eb6c256516aa54c2 (patch)
tree500eae387a5b5840efdf223cf9ac447f6e3f03e9
parent08c87c8704758ef2cd22216ea4500868395f623d (diff)
Formerly dir-unlink.c.~4~
-rw-r--r--libdiskfs/dir-unlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/dir-unlink.c b/libdiskfs/dir-unlink.c
index e8b81f38..3f2fa12b 100644
--- a/libdiskfs/dir-unlink.c
+++ b/libdiskfs/dir-unlink.c
@@ -32,7 +32,7 @@ diskfs_S_dir_unlink (struct protid *dircred,
return EOPNOTSUPP;
dnp = dircred->po->np;
- if (readonly)
+ if (diskfs_readonly)
return EROFS;
mutex_lock (&dnp->lock);
@@ -42,7 +42,7 @@ diskfs_S_dir_unlink (struct protid *dircred,
error = EISDIR;
if (error)
{
- diskfs_drop_dirstat (ds);
+ diskfs_drop_dirstat (dnp, ds);
mutex_unlock (&dnp->lock);
return error;
}
@@ -55,7 +55,7 @@ diskfs_S_dir_unlink (struct protid *dircred,
diskfs_nrele (np);
else
diskfs_nput (np);
- diskfs_drop_dirstat (ds);
+ diskfs_drop_dirstat (dnp, ds);
mutex_unlock (&dnp->lock);
return EISDIR;
}