summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-rmdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/dir-rmdir.c')
-rw-r--r--libdiskfs/dir-rmdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-rmdir.c b/libdiskfs/dir-rmdir.c
index cded76a0..70c87d03 100644
--- a/libdiskfs/dir-rmdir.c
+++ b/libdiskfs/dir-rmdir.c
@@ -33,7 +33,7 @@ diskfs_S_dir_rmdir (struct protid *dircred,
return EOPNOTSUPP;
dnp = dircred->po->np;
- if (diskfs_readonly)
+ if (diskfs_check_readonly ())
return EROFS;
mutex_lock (&dnp->lock);