UML - use DIV_ROUND_UP
PATCH 17/19 UML - use DIV_ROUND_UP
From: Jiri Olsa <[email protected]>
I just saw similar patches in the janitor kernel's list, and spotted place it fits.
Signed-off-by Jiri Olsa <[email protected]>
Signed-off-by Jeff Dike <[email protected]>
--- arch/um/drivers/ubd_kern.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/um/drivers/ubd_kern.c +2 -2
@@ -1004,8 +1004,8 @@ static void cowify_bitmap(__u64 io_offse* 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];
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel