Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9806
b: refs/heads/master
c: a0c111c
h: refs/heads/master
v: v3
  • Loading branch information
Paolo Galtieri authored and Linus Torvalds committed Oct 11, 2005
1 parent 37787ea commit 12d0695
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: 1bef40032992320dd25a266fc166bfb8fa3f2f59
refs/heads/master: a0c111c631e7ab4abd68920debd44259160812ef
4 changes: 2 additions & 2 deletions trunk/arch/ppc/kernel/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ EXPORT_SYMBOL(__dma_sync);
static inline void __dma_sync_page_highmem(struct page *page,
unsigned long offset, size_t size, int direction)
{
size_t seg_size = min((size_t)PAGE_SIZE, size) - offset;
size_t seg_size = min((size_t)(PAGE_SIZE - offset), size);
size_t cur_size = seg_size;
unsigned long flags, start, seg_offset = offset;
int nr_segs = PAGE_ALIGN(size + (PAGE_SIZE - offset))/PAGE_SIZE;
int nr_segs = 1 + ((size - seg_size) + PAGE_SIZE - 1)/PAGE_SIZE;
int seg_nr = 0;

local_irq_save(flags);
Expand Down

0 comments on commit 12d0695

Please sign in to comment.