]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libzdb/libzdb.c
Provide macros for setting and getting blkptr birth times
[mirror_zfs.git] / lib / libzdb / libzdb.c
index 9989fa1eb80f8e858cf7d7908605a057e78ec71a..12144dc65e75d57ab50d5413ea07b9aedc4e03ea 100644 (file)
@@ -93,9 +93,9 @@ livelist_compare(const void *larg, const void *rarg)
         * Since we're storing blkptrs without cancelling FREE/ALLOC pairs,
         * it's possible the offsets are equal. In that case, sort by txg
         */
-       if (l->blk_birth < r->blk_birth) {
+       if (BP_GET_LOGICAL_BIRTH(l) < BP_GET_LOGICAL_BIRTH(r)) {
                return (-1);
-       } else if (l->blk_birth > r->blk_birth) {
+       } else if (BP_GET_LOGICAL_BIRTH(l) > BP_GET_LOGICAL_BIRTH(r)) {
                return (+1);
        }
        return (0);