gnttab: cleanup of number-of-active-frames calculations
authorJan Beulich <jbeulich@suse.com>
Wed, 12 Sep 2012 08:21:21 +0000 (10:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Sep 2012 08:21:21 +0000 (10:21 +0200)
commit6da1e2af7d2bc70d697fcc605745df038b078eb6
treecd9a31ec83b8bf0cbed48670335808d9c7cc5eec
parent48baddaa861a8f0704586d449cf1655c87792610
gnttab: cleanup of number-of-active-frames calculations

max_nr_active_grant_frames() is merly is special case of
num_act_frames_from_sha_frames(), so there's no need to have a special
case implementation for it.

Further, some of the related definitions (including the "struct
active_grant_entry" definition itself) can (and hence should) really be
private to grant_table.c.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/grant_table.c
xen/include/xen/grant_table.h