summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-rmdir.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-03 22:08:46 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-03 22:08:46 +0000
commitc3d8d9f3f6b632aa498f58e51ce18fb7d3c7a6b1 (patch)
tree1da54926c70a883a2c1e8e0d84dc6a5f0dc1d518 /libdiskfs/dir-rmdir.c
parent9147acaefe77cf1ec4d34c17eb6c256516aa54c2 (diff)
Formerly dir-rmdir.c.~3~
Diffstat (limited to 'libdiskfs/dir-rmdir.c')
-rw-r--r--libdiskfs/dir-rmdir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdiskfs/dir-rmdir.c b/libdiskfs/dir-rmdir.c
index a60824da..124ed21b 100644
--- a/libdiskfs/dir-rmdir.c
+++ b/libdiskfs/dir-rmdir.c
@@ -32,7 +32,7 @@ diskfs_S_dir_rmdir (struct protid *dircred,
return EOPNOTSUPP;
dnp = dircred->po->np;
- if (readonly)
+ if (diskfs_readonly)
return EROFS;
mutex_lock (&dnp->lock);
@@ -43,7 +43,7 @@ diskfs_S_dir_rmdir (struct protid *dircred,
if (error)
{
mutex_unlock (&dnp->lock);
- diskfs_drop_dirstat (ds);
+ diskfs_drop_dirstat (dnp, ds);
return error;
}
@@ -51,7 +51,7 @@ diskfs_S_dir_rmdir (struct protid *dircred,
if (dnp == np)
{
diskfs_nrele (np);
- diskfs_drop_dirstat (ds);
+ diskfs_drop_dirstat (dnp, ds);
mutex_unlock (&dnp->lock);
return EINVAL;
}
@@ -62,7 +62,7 @@ diskfs_S_dir_rmdir (struct protid *dircred,
if (!diskfs_dirempty (np, dircred))
{
diskfs_nput (np);
- diskfs_drop_dirstat (ds);
+ diskfs_drop_dirstat (dnp, ds);
mutex_unlock (&dnp->lock);
return ENOTEMPTY;
}