30 Mar, 2010

1 commit


29 Mar, 2010

1 commit


28 Mar, 2010

2 commits

  • A comment in the old code read:
    /* The math in this function can surely use some love */

    And indeed it did. In the case that area->a_used_bytes is exactly
    4096 bytes below segment size it fell apart. pad_wbuf is now split
    into two helpers that are significantly less complicated.

    Signed-off-by: Joern Engel

    Joern Engel
     
  • The comment was correct, so make the code match the comment. As the
    new comment indicates, we might be able to do a little less work. But
    for the current -rc series let's keep it simple and just fix the bug.

    Signed-off-by: Joern Engel

    Joern Engel
     

27 Mar, 2010

20 commits


26 Mar, 2010

14 commits

  • Fix __get_user_pages() to make it pin the last page on a buffer that doesn't
    begin at the start of a page, but is a multiple of PAGE_SIZE in size.

    The problem is that __get_user_pages() advances the pointer too much when it
    iterates to the next page if the page it's currently looking at isn't used from
    the first byte. This can cause the end of a short VMA to be reached
    prematurely, resulting in the last page being lost.

    Signed-off-by: Steven J. Magnani
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • Revert the following patch:

    commit c08c6e1f54c85fc299cf9f88cf330d6dd28a9a1d
    Author: Steven J. Magnani
    Date: Fri Mar 5 13:42:24 2010 -0800

    nommu: get_user_pages(): pin last page on non-page-aligned start

    As it assumes that the mappings begin at the start of pages - something that
    isn't necessarily true on NOMMU systems. On NOMMU systems, it is possible for
    a mapping to only occupy part of the page, and not necessarily touch either end
    of it; in fact it's also possible for multiple non-overlapping mappings to
    coexist on one page (consider direct mappings of ROMFS files, for example).

    Signed-off-by: David Howells
    Acked-by: Steven J. Magnani
    Signed-off-by: Linus Torvalds

    David Howells
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    ext4: Fixed inode allocator to correctly track a flex_bg's used_dirs
    ext4: Don't use delayed allocation by default when used instead of ext3
    ext4: Fix spelling of CONTIG_FS_EXT3 to CONFIG_FS_EXT3
    ext4: Fix estimate of # of blocks needed to write indirect-mapped files

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits)
    TIPC: Removed inactive maintainer
    isdn: Cleanup Sections in PCMCIA driver elsa
    isdn: Cleanup Sections in PCMCIA driver avma1
    isdn: Cleanup Sections in PCMCIA driver teles
    isdn: Cleanup Sections in PCMCIA driver sedlbauer
    via-velocity: Fix FLOW_CNTL_TX_RX handling in set_mii_flow_control()
    netfilter: xt_hashlimit: IPV6 bugfix
    netfilter: ip6table_raw: fix table priority
    netfilter: xt_hashlimit: dl_seq_stop() fix
    af_key: return error if pfkey_xfrm_policy2msg_prep() fails
    skbuff: remove unused dma_head & dma_maps fields
    vlan: updates vlan real_num_tx_queues
    vlan: adds vlan_dev_select_queue
    igb: only use vlan_gro_receive if vlans are registered
    igb: do not modify tx_queue_len on link speed change
    igb: count Rx FIFO errors correctly
    bnx2: Use proper handler during netpoll.
    bnx2: Fix netpoll crash.
    ksz884x: fix return value of netdev_set_eeprom
    cgroups: net_cls as module
    ...

    Linus Torvalds
     
  • Signed-off-by: Jon Maloy
    Signed-off-by: David S. Miller

    Jon Maloy
     
  • Compiling this driver gave a section mismatch,
    so I reviewed the init/exit paths of the driver
    and made the correct changes.

    WARNING: drivers/isdn/hisax/built-in.o(.text+0x55e37): Section mismatch
    in reference from the function elsa_cs_config() to the function
    .devinit.text:hisax_init_pcmcia()
    The function elsa_cs_config() references
    the function __devinit hisax_init_pcmcia().
    This is often because elsa_cs_config lacks a __devinit
    annotation or the annotation of hisax_init_pcmcia is wrong.

    Signed-off-by: Henrik Kretzschmar
    Acked-by: Karsten Keil
    Signed-off-by: David S. Miller

    Henne
     
  • Compiling this driver gave a section mismatch,
    so I reviewed the init/exit paths of the driver
    and made the correct changes.

    WARNING: drivers/isdn/hisax/built-in.o(.text+0x56512): Section mismatch
    in reference from the function avma1cs_config() to the function
    .devinit.text:hisax_init_pcmcia()
    The function avma1cs_config() references
    the function __devinit hisax_init_pcmcia().
    This is often because avma1cs_config lacks a __devinit
    annotation or the annotation of hisax_init_pcmcia is wrong.

    Signed-off-by: Henrik Kretzschmar
    Acked-by: Karsten Keil
    Signed-off-by: David S. Miller

    Henne
     
  • Compiling this driver gave a section mismatch,
    so I reviewed the init/exit paths of the driver
    and made the correct changes.

    WARNING: drivers/isdn/hisax/built-in.o(.text+0x56bfb): Section mismatch
    in reference from the function teles_cs_config() to the function
    .devinit.text:hisax_init_pcmcia()
    The function teles_cs_config() references
    the function __devinit hisax_init_pcmcia().
    This is often because teles_cs_config lacks a __devinit
    annotation or the annotation of hisax_init_pcmcia is wrong.

    Signed-off-by: Henrik Kretzschmar
    Acked-by: Karsten Keil
    Signed-off-by: David S. Miller

    Henne
     
  • Compiling this driver gave a section mismatch,
    so I reviewed the init/exit paths of the driver
    and made the correct changes.

    WARNING: drivers/isdn/hisax/built-in.o(.text+0x558d6): Section mismatch
    in reference from the function sedlbauer_config() to the function
    .devinit.text:hisax_init_pcmcia()
    The function sedlbauer_config() references
    the function __devinit hisax_init_pcmcia().
    This is often because sedlbauer_config lacks a __devinit
    annotation or the annotation of hisax_init_pcmcia is wrong.

    Signed-off-by: Henrik Kretzschmar
    Acked-by: Karsten Keil
    Signed-off-by: David S. Miller

    Henne
     
  • Clear, don't set, ANAR_ASMDIR in this case.

    Noticed by Roel Kluin.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • David S. Miller
     
  • Yanko's GA-MA78GM-S2H (BIOS F11) reports the following resource in a PCI
    host bridge _CRS:

    [07] 32-Bit DWORD Address Space Resource
    Min Relocatability : MinFixed
    Max Relocatability : MaxFixed
    Address Minimum : CFF00000 (_MIN)
    Address Maximum : FEBFFFFF (_MAX)
    Address Length : 3EE10000 (_LEN)

    This is invalid per spec (ACPI 4.0, 6.4.3.5) because it's a fixed size,
    fixed location descriptor, but _LEN != _MAX - _MIN + 1.

    Based on https://bugzilla.kernel.org/show_bug.cgi?id=15480#c15, I think
    Windows handles this by truncating the window so it fits between _MIN and
    _MAX. I also verified this by modifying the SeaBIOS DSDT and booting
    Windows 2008 R2 with qemu.

    This patch makes Linux truncate the window, too, which fixes:
    http://bugzilla.kernel.org/show_bug.cgi?id=15480

    Signed-off-by: Bjorn Helgaas
    Tested-by: Yanko Kaneti
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     
  • With insert_resource_conflict(), we can learn what the actual conflict is,
    so print that info for debugging purposes.

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     
  • A missing break statement in hashlimit_ipv6_mask(), and masks
    between /64 and /95 are not working at all...

    Signed-off-by: Eric Dumazet
    Signed-off-by: Patrick McHardy

    Eric Dumazet
     

25 Mar, 2010

2 commits