| Fix use of acl_phys after recycled. |
| Reported in bug 225162. |
| Fixed in r329711, r330232, r330235. |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /var/tmp/freebsd-src/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c freebsd-10.3/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c |
| --- /var/tmp/freebsd-src/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c 2016-03-25 09:09:27.000000000 +0800 |
| +++ freebsd-10.3/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c 2018-11-05 20:14:30.687611396 +0800 |
| @@ -1188,6 +1188,7 @@ |
| sa_bulk_attr_t bulk[5]; |
| uint64_t ctime[2]; |
| int count = 0; |
| + zfs_acl_phys_t acl_phys; |
| |
| mode = zp->z_mode; |
| |
| @@ -1234,7 +1235,6 @@ |
| } else { /* Painful legacy way */ |
| zfs_acl_node_t *aclnode; |
| uint64_t off = 0; |
| - zfs_acl_phys_t acl_phys; |
| uint64_t aoid; |
| |
| if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), |