direct-io.hg

changeset 7851:e4e1674a747d

One more try...

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Wed Nov 16 18:41:43 2005 +0100 (2005-11-16)
parents 9c68f4a58aa9
children 3f39f030fa89
files tools/libxc/xc_linux_save.c
line diff
     1.1 --- a/tools/libxc/xc_linux_save.c	Wed Nov 16 18:28:09 2005 +0100
     1.2 +++ b/tools/libxc/xc_linux_save.c	Wed Nov 16 18:41:43 2005 +0100
     1.3 @@ -73,7 +73,7 @@ static unsigned long *live_m2p = NULL;
     1.4  */
     1.5  
     1.6  #define BITS_PER_LONG (sizeof(unsigned long) * 8) 
     1.7 -#define BITMAP_SIZE   ((max_pfn + 7) / 8)
     1.8 +#define BITMAP_SIZE   ((max_pfn + BITS_PER_LONG - 1) / 8)
     1.9  
    1.10  #define BITMAP_ENTRY(_nr,_bmap) \
    1.11     ((unsigned long *)(_bmap))[(_nr)/BITS_PER_LONG]