btrfs-progs: dump-tree: add untyped item ptr helper and use it
authorDavid Sterba <dsterba@suse.com>
Wed, 2 Nov 2016 09:06:16 +0000 (10:06 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Nov 2016 12:47:30 +0000 (13:47 +0100)
commit7541b53b34dc4e866cb0dc173d97dcfb5c3a5a74
treeb091412ad9a95b44330929163c29ed83487d8dfd
parent17a9d9013ddbfdd029ff5cfbbf670af1b921a68b
btrfs-progs: dump-tree: add untyped item ptr helper and use it

There's lots of code that passes btrfs_item_ptr. Add a helper to extract
the ptr at the beginning, ignoring the type. The print functions take
the correct type, but we ignore it in the conversion macros as it does
not provide the type checking anyway.

If the typed variable is used more than once, it's kept in place.

Signed-off-by: David Sterba <dsterba@suse.com>
print-tree.c