From 9147acaefe77cf1ec4d34c17eb6c256516aa54c2 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" <mib@gnu.org> Date: Thu, 3 Feb 1994 22:08:45 +0000 Subject: Formerly dir-unlink.c.~4~ --- libdiskfs/dir-unlink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdiskfs/dir-unlink.c') 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; } -- cgit v1.2.3