summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-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;
}