]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/zfs_dir.c
Linux compat 2.6.39: mount_nodev()
[mirror_zfs.git] / module / zfs / zfs_dir.c
index 0df7cc1f83d8cbdcc265fbf1d8a20a722bc7a860..47550ec63915107587f6baef82b44ac5dfecb414 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);
        }