diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
| commit | a8931ef380c92d121ae74ecfb03b2d63f72eea6f (patch) | |
| tree | 980fb6b019e11e6cb1ece55b7faff184721a8053 /arch/um/drivers/ubd_kern.c | |
| parent | 90574d0a4d4b73308ae54a2a57a4f3f1fa98e984 (diff) | |
| parent | e5a5816f7875207cb0a0a7032e39a4686c5e10a4 (diff) | |
| download | olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.tar.xz olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.zip  | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/um/drivers/ubd_kern.c')
| -rw-r--r-- | arch/um/drivers/ubd_kern.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 5e45e39a8a8..b58fb8941d8 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -49,7 +49,6 @@  #include "irq_user.h"  #include "irq_kern.h"  #include "ubd_user.h" -#include "kern_util.h"  #include "os.h"  #include "mem.h"  #include "mem_kern.h" @@ -1178,8 +1177,8 @@ static void cowify_bitmap(__u64 io_offset, int length, unsigned long *cow_mask,  	 * by one word.  Thanks to Lynn Kerby for the fix and James McMechan  	 * for the original diagnosis.  	 */ -	if(*cow_offset == ((bitmap_len + sizeof(unsigned long) - 1) / -			   sizeof(unsigned long) - 1)) +	if (*cow_offset == (DIV_ROUND_UP(bitmap_len, +					 sizeof(unsigned long)) - 1))  		(*cow_offset)--;  	bitmap_words[0] = bitmap[*cow_offset];  |