btrfs: convert nodesize macros to static inlines
authorJeff Mahoney <jeffm@suse.com>
Wed, 15 Jun 2016 14:33:06 +0000 (10:33 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:54:25 +0000 (13:54 +0200)
commit1db1ff92b6ce2247999787480c2eeb63a1811e79
treed6123aa0666467421ab8343c6bece5f7e2e0318e
parent14a1e067b45614d6236e3c82b36f62caef44ac62
btrfs: convert nodesize macros to static inlines

This patch converts the macros used to calculate various node
size limits to static inlines.  That way we get type checking for free.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h