diff --git a/usr.bin/fstat/zfs.c b/usr.bin/fstat/zfs.c index fc23261c76a..cc284fb58ba 100644 --- a/usr.bin/fstat/zfs.c +++ b/usr.bin/fstat/zfs.c @@ -29,6 +29,7 @@ #include #define _KERNEL #include +#include #undef _KERNEL #include @@ -57,7 +58,7 @@ * definition. */ #define LOCATION_ZID (2 * sizeof(void *)) -#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *))) +#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *) - sizeof(struct task))) int zfs_filestat(struct vnode *vp, struct filestat *fsp)