btrfs-progs: check: add helpers for converting between structures
commit93014d235382301644c76ef338cc9a8b3a06615b
authorJeff Mahoney <jeffm@suse.com>
Thu, 23 Jun 2016 19:26:04 +0000 (23 15:26 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Jul 2016 12:22:17 +0000 (4 14:22 +0200)
tree453c4ff0f2412d0faff57b0772c5a1708e25dc44
parentdcd25b7e0d928a30c183a69d5ed4bb283e2f83f0
btrfs-progs: check: add helpers for converting between structures

We either open code list_entry calls or outright cast between types.  The
compiler will do the right thing if we use static inlines to do
typesafe conversions.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c