diff options
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/zfs_vnops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/zfs_vnops.c b/module/zfs/zfs_vnops.c index 2f55e562e..d05ccef39 100644 --- a/module/zfs/zfs_vnops.c +++ b/module/zfs/zfs_vnops.c @@ -3975,6 +3975,9 @@ zfs_dirty_inode(struct inode *ip, int flags) int error; int cnt = 0; + if (zfs_is_readonly(zsb) || dmu_objset_is_snapshot(zsb->z_os)) + return (0); + ZFS_ENTER(zsb); ZFS_VERIFY_ZP(zp); |