Compile zio.h and zio_impl.h mutual include

zio.h includes zio_impl.h but zio_impl.h also includes zio.h, so the
header files to contain each other.  Get rid of the zio_impl.h include
in zio.h and update zio_inject.c to include zio.h instead of zio_impl.h.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn>
Closes #5439
This commit is contained in:
cao 2016-12-02 07:36:25 +08:00 committed by Brian Behlendorf
parent 5f20c145df
commit 6a8fd57fa7
2 changed files with 1 additions and 4 deletions

View File

@ -30,9 +30,6 @@
#ifndef _ZIO_IMPL_H #ifndef _ZIO_IMPL_H
#define _ZIO_IMPL_H #define _ZIO_IMPL_H
#include <sys/zfs_context.h>
#include <sys/zio.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -41,7 +41,7 @@
*/ */
#include <sys/arc.h> #include <sys/arc.h>
#include <sys/zio_impl.h> #include <sys/zio.h>
#include <sys/zfs_ioctl.h> #include <sys/zfs_ioctl.h>
#include <sys/vdev_impl.h> #include <sys/vdev_impl.h>
#include <sys/dmu_objset.h> #include <sys/dmu_objset.h>