From da92d5cbb38cea3a860b8a6bb8ee21f9129e7d7c Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Thu, 21 Nov 2019 09:32:57 -0800 Subject: Add zfs_file_* interface, remove vnodes Provide a common zfs_file_* interface which can be implemented on all platforms to perform normal file access from either the kernel module or the libzpool library. This allows all non-portable vnode_t usage in the common code to be replaced by the new portable zfs_file_t. The associated vnode and kobj compatibility functions, types, and macros have been removed from the SPL. Moving forward, vnodes should only be used in platform specific code when provided by the native operating system. Reviewed-by: Sean Eric Fagan Reviewed-by: Brian Behlendorf Reviewed-by: Igor Kozhukhov Reviewed-by: Jorgen Lundman Signed-off-by: Matt Macy Closes #9556 --- module/zfs/arc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/zfs/arc.c') diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 6ed2a220d..87df07cc0 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -8666,7 +8666,7 @@ l2arc_fini(void) void l2arc_start(void) { - if (!(spa_mode_global & FWRITE)) + if (!(spa_mode_global & SPA_MODE_WRITE)) return; (void) thread_create(NULL, 0, l2arc_feed_thread, NULL, 0, &p0, @@ -8676,7 +8676,7 @@ l2arc_start(void) void l2arc_stop(void) { - if (!(spa_mode_global & FWRITE)) + if (!(spa_mode_global & SPA_MODE_WRITE)) return; mutex_enter(&l2arc_feed_thr_lock); -- cgit v1.2.3