diff options
author | Chunwei Chen <[email protected]> | 2019-08-13 20:21:27 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-08-13 21:21:27 -0600 |
commit | 8e556c5ebc7b66caf2cdcc561b6644f9f8437a6d (patch) | |
tree | 2f2ba8596005f0c42696cc44208633f0a719ebfb /include/zfs_deleg.h | |
parent | 475ebd763a7bc963b64118c22244cb0cd795d778 (diff) |
Fix out-of-order ZIL txtype lost on hardlinked files
We should only call zil_remove_async when an object is removed. However,
in current implementation, it is called whenever TX_REMOVE is called. In
the case of hardlinked file, every unlink will generate TX_REMOVE and
causing operations to be dropped even when the object is not removed.
We fix this by only calling zil_remove_async when the file is fully
unlinked.
Reviewed-by: George Wilson <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Prakash Surya <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #8769
Closes #9061
Diffstat (limited to 'include/zfs_deleg.h')
0 files changed, 0 insertions, 0 deletions