From 28caa74b196553aaafda6d0a881668735d627d82 Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Wed, 26 Feb 2020 16:09:17 -0800 Subject: Refactor dnode dirty context from dbuf_dirty * Add dedicated donde_set_dirtyctx routine. * Add empty dirty record on destroy assertion. * Make much more extensive use of the SET_ERROR macro. Reviewed-by: Will Andrews Reviewed-by: Brian Behlendorf Reviewed-by: Matthew Ahrens Signed-off-by: Matt Macy Closes #9924 --- module/os/linux/zfs/zfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/os/linux') diff --git a/module/os/linux/zfs/zfs_vfsops.c b/module/os/linux/zfs/zfs_vfsops.c index dba52baeb..9ed6256e8 100644 --- a/module/os/linux/zfs/zfs_vfsops.c +++ b/module/os/linux/zfs/zfs_vfsops.c @@ -990,7 +990,7 @@ zfs_check_global_label(const char *dsname, const char *hexsl) if (dsl_prop_get_integer(dsname, zfs_prop_to_name(ZFS_PROP_READONLY), &rdonly, NULL)) return (SET_ERROR(EACCES)); - return (rdonly ? 0 : EACCES); + return (rdonly ? 0 : SET_ERROR(EACCES)); } return (SET_ERROR(EACCES)); } -- cgit v1.2.3