summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dir-mkdir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/dir-mkdir.c b/libdiskfs/dir-mkdir.c
index 90c70442..6d7f458d 100644
--- a/libdiskfs/dir-mkdir.c
+++ b/libdiskfs/dir-mkdir.c
@@ -26,14 +26,14 @@ diskfs_S_dir_mkdir (struct protid *dircred,
{
struct node *dnp;
struct node *np = 0;
- struct dirstat ds = alloca (diskfs_dirstat_size);
+ struct dirstat *ds = alloca (diskfs_dirstat_size);
int error;
if (!dircred)
return EOPNOTSUPP;
dnp = dircred->po->np;
- if (readonly)
+ if (diskfs_readonly)
return EROFS;
mutex_lock (&dnp->lock);
@@ -47,7 +47,7 @@ diskfs_S_dir_mkdir (struct protid *dircred,
if (error != ENOENT)
{
- diskfs_drop_dirstat (ds);
+ diskfs_drop_dirstat (dnp, ds);
mutex_unlock (&dnp->lock);
return error;
}