Illumos #883: ZIL reuse during remount corruption
[zfs.git] / module / zfs / zfs_dir.c
index 0df7cc1..47550ec 100644 (file)
@@ -1045,7 +1045,7 @@ top:
                return (ENOENT);
        }
 
-       if (zsb->z_vfs->mnt_flags & MNT_READONLY) {
+       if (zfs_is_readonly(zsb)) {
                zfs_dirent_unlock(dl);
                return (EROFS);
        }