Fix powerpc build.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
kib 2020-08-16 22:50:59 +00:00
parent 5656de5bfd
commit 4ac5354c87

View File

@ -929,7 +929,7 @@ vn_read_from_obj(struct vnode *vp, struct uio *uio)
* break calculation.
*/
#if defined(__powerpc__) && !defined(__powerpc64__)
vsz = object->un_pager.vnp.vnp_size;
vsz = obj->un_pager.vnp.vnp_size;
#else
vsz = atomic_load_64(&obj->un_pager.vnp.vnp_size);
#endif