diff options
author | Heitor Alves de Siqueira <[email protected]> | 2019-11-15 14:56:05 -0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-15 09:56:05 -0800 |
commit | 41e1aa2a06f81640c3a3e1a6b12558d95887f662 (patch) | |
tree | 84efbc245240b283f3735f06e831642e536bc542 /include | |
parent | cc1a1e17d944fa4111443c41cdab7320061b38fa (diff) |
Break out of zfs_zget early if unlinked znode
If zp->z_unlinked is set, we're working with a znode that has been
marked for deletion. If that's the case, we can skip the "goto again"
loop and return ENOENT, as the znode should not be discovered.
Reviewed-by: Richard Yao <[email protected]>
Reviewed-by: Matt Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Heitor Alves de Siqueira <[email protected]>
Closes #9583
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions