]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'kmap_atomic/kmap_atomic'
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 02:53:37 +0000 (13:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 02:53:37 +0000 (13:53 +1100)
26 files changed:
1  2 
arch/mips/mm/c-r4k.c
arch/mips/mm/init.c
arch/powerpc/mm/mem.c
arch/x86/mm/highmem_32.c
drivers/block/loop.c
drivers/net/ethernet/intel/e1000/e1000_main.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/sun/cassini.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c
drivers/scsi/cxgbi/libcxgbi.c
drivers/scsi/ips.c
drivers/staging/hv/storvsc_drv.c
drivers/staging/zcache/zcache-main.c
fs/btrfs/inode.c
fs/gfs2/aops.c
fs/gfs2/quota.c
fs/jbd/journal.c
fs/jbd2/journal.c
fs/logfs/dir.c
fs/logfs/readwrite.c
fs/logfs/segment.c
fs/nfs/nfs4proc.c
mm/filemap.c
mm/swapfile.c
mm/vmalloc.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 18f8771769be44cb1c8050394b0b6dca2d1732a0,05b8bdc09bf4460335ee4eb1f1eb33bad5fdabca..311e10dfb2b252f960464e1d1b13a91893afbd13
@@@ -963,27 -870,9 +962,27 @@@ static unsigned int copy_from_bounce_bu
  
                        if (bounce_sgl[j].offset == bounce_sgl[j].length) {
                                /* full */
-                               kunmap_atomic((void *)bounce_addr, KM_IRQ0);
+                               kunmap_atomic((void *)bounce_addr);
                                j++;
  
 +                              /*
 +                               * It is possible that the number of elements
 +                               * in the bounce buffer may not be equal to
 +                               * the number of elements in the original
 +                               * scatter list. Handle this correctly.
 +                               */
 +
 +                              if (j == bounce_sgl_count) {
 +                                      /*
 +                                       * We are done; cleanup and return.
 +                                       */
 +                                      kunmap_atomic((void *)(dest_addr -
 +                                                      orig_sgl[i].offset),
 +                                                      KM_IRQ0);
 +                                      local_irq_restore(flags);
 +                                      return total_copied;
 +                              }
 +
                                /* if we need to use another bounce buffer */
                                if (destlen || i != orig_sgl_count - 1)
                                        bounce_addr =
Simple merge
Simple merge
diff --cc fs/gfs2/aops.c
Simple merge
diff --cc fs/gfs2/quota.c
Simple merge
Simple merge
Simple merge
diff --cc fs/logfs/dir.c
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc mm/filemap.c
Simple merge
diff --cc mm/swapfile.c
Simple merge
diff --cc mm/vmalloc.c
Simple merge