From 63a697a4174c18ce06348e7ff71507f8a2123c40 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 3 Feb 1994 21:37:33 +0000 Subject: Formerly dir-mkdir.c.~4~ --- libdiskfs/dir-mkdir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdiskfs') 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; } -- cgit v1.2.3