Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96457
b: refs/heads/master
c: 6d07424
h: refs/heads/master
i:
  96455: 031531d
v: v3
  • Loading branch information
Jiri Olsa authored and Linus Torvalds committed May 13, 2008
1 parent a3c8939 commit dc65b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63b9871f6ee2607f3b44e0044e145574b3f08619
refs/heads/master: 6d0742426c9adc7465ef5c62a99a1d3e9696ea19
4 changes: 2 additions & 2 deletions trunk/arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,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];
Expand Down

0 comments on commit dc65b0b

Please sign in to comment.