mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-30 18:56:23 +03:00
FreeBSD: Catch up with recent VFS changes
cn_thread is always curthread. https://cgit.freebsd.org/src/commit?id=b4a58fbf640409a1e507d9f7b411c83a3f83a2f3 https://cgit.freebsd.org/src/commit?id=2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3 Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Alan Somers <asomers@gmail.com> Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org> Closes #12668
This commit is contained in:
committed by
Tony Hutter
parent
b7ecb4ff0d
commit
27d9c6ae2b
@@ -207,7 +207,11 @@ zfs_file_getattr(zfs_file_t *fp, zfs_file_attr_t *zfattr)
|
||||
|
||||
td = curthread;
|
||||
|
||||
#if __FreeBSD_version < 1400037
|
||||
rc = fo_stat(fp, &sb, td->td_ucred, td);
|
||||
#else
|
||||
rc = fo_stat(fp, &sb, td->td_ucred);
|
||||
#endif
|
||||
if (rc)
|
||||
return (SET_ERROR(rc));
|
||||
zfattr->zfa_size = sb.st_size;
|
||||
|
||||
Reference in New Issue
Block a user