diff options
author | Arvin Schnell <aschnell@suse.de> | 2013-01-30 14:50:26 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-02-19 11:15:30 +0100 |
commit | 0c38ff3ca4f481bbae74283fd00a56fbd938e4b2 (patch) | |
tree | 0cfb6ca9cf09a104237203bfba74eb52dc47f51c /extent_io.c | |
parent | 7d4dc89f96644c6f1b7efb5a3759bbee58f5b27e (diff) |
btrfs-progs: make libbtrfs usable from C++
Please find attached a patch to make the new libbtrfs usable from
C++ (at least for the parts snapper will likely need).
Signed-off-by: Arvin Schnell <aschnell@suse.de>
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Diffstat (limited to 'extent_io.c')
-rw-r--r-- | extent_io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extent_io.c b/extent_io.c index 987452e1..78deb502 100644 --- a/extent_io.c +++ b/extent_io.c @@ -48,7 +48,7 @@ static struct extent_state *alloc_extent_state(void) return NULL; state->refs = 1; state->state = 0; - state->private = 0; + state->xprivate = 0; return state; } @@ -511,7 +511,7 @@ int set_state_private(struct extent_io_tree *tree, u64 start, u64 private) ret = -ENOENT; goto out; } - state->private = private; + state->xprivate = private; out: return ret; } @@ -532,7 +532,7 @@ int get_state_private(struct extent_io_tree *tree, u64 start, u64 *private) ret = -ENOENT; goto out; } - *private = state->private; + *private = state->xprivate; out: return ret; } |