Project

General

Profile

Actions

Feature #2550

open

Introduce BP_IS_METADATA macro to ZFS

Added by Dan Kruchinin over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2012-03-28
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

It's quite annoying to use "BP_GET_LEVEL(bp) > 0) || (dmu_ot[BP_GET_TYPE(bp)].ot_metadata" construction every time you
need to determine whether block pointer points to data or to metadata.

Tiny patch (attached) introduces BP_IS_METADATA(bp) macro that looks not as scaring as the construction above while does the same.


Files

zfs-bp-is-metadata.patch (1.7 KB) zfs-bp-is-metadata.patch Dan Kruchinin, 2012-03-28 02:51 AM

No data to display

Actions

Also available in: Atom PDF