1. 22 Nov, 2002 27 commits
    • Andrew Morton's avatar
      [PATCH] bootmem crash fix · 40a7fe2f
      Andrew Morton authored
      From Roman Zippel.  Don't assume that physical memory starts at
      physical address zero.
      40a7fe2f
    • Andrew Morton's avatar
      [PATCH] ext2/ext3 Orlov directory accounting fix · 52ab8b6a
      Andrew Morton authored
      Patch from Stephen Tweedie
      
      "In looking at the fix for the ext3 Orlov double-accounting bug, I
       noticed a change to the sb->s_dir_count accounting, restoring a
       missing s_dir_count++ when we allocate a new directory.
      
       However, I can't find anywhere in the code where we decrement this
       again on directory deletion, neither in ext2 nor in ext3, in 2.4 nor
       in 2.5."
      
      Locking is via lock_super().
      52ab8b6a
    • Andrew Morton's avatar
      [PATCH] remove a warning from __block_write_full_page() · 793b840b
      Andrew Morton authored
      There is a warning in there to detect when block_write_full_page()
      attaches buffers to a blockdev page.  This is a bad thing because that
      page's blocks may then overlap blocks from a different address_space.
      So I disallowed it.
      
      But the message can be triggered when an application is mmapping a
      blockdev MAP_SHARED.  Apparently INND likes to do this.
      
      So remove the warning.
      793b840b
    • Andrew Morton's avatar
      [PATCH] fix endian problem in ext3 htree code · 086b4866
      Andrew Morton authored
      Patch from Christopher Li <chrisl@vmware.com>
      
      This little patch will fix two place in htree code which
      forget the "cpu_to_le16" converting . This bug causes
      incorrect record length on PPC.
      
      Thanks Franz for report the problem.
      086b4866
    • Andrew Morton's avatar
      [PATCH] Make inode_ops->setxattr value parameter const · 443bfb9d
      Andrew Morton authored
      Patch from Andreas Gruenbacher <agruen@suse.de>
      
      The setxattr inode operation is defined like this in 2.4 and 2.5:
      
              int (*setxattr) (struct dentry *dentry, const char *name,
                               void *value, size_t size, int flags);
      
      the original type of the value parameter was `const void *'; the const
      obviously has been lost at some point. The definition should be:
      
              int (*setxattr) (struct dentry *dentry, const char *name,
                               const void *value, size_t size, int flags);
      443bfb9d
    • Andrew Morton's avatar
      [PATCH] Expanded bad page handling · 67d9df19
      Andrew Morton authored
      The page allocator has traditionally just gone BUG when it sees a page
      in a bad state.  This is usually due to hardware errors, sometimes
      software errors.
      
      I'm proposing that we not go BUG() any more, but print lots (and lots)
      of diagnostic info and try to continue.
      
      Might be a bit controversial.
      67d9df19
    • Andrew Morton's avatar
      [PATCH] reduce CPU cost in loop · 75177faa
      Andrew Morton authored
      balance_dirty_pages() is too expensive to call once-per-page.  Use the
      ratelimited version.
      75177faa
    • Andrew Morton's avatar
      [PATCH] Add SMP barrier to ipc's grow_ary() · 5e1341d1
      Andrew Morton authored
      From Dipanker Sarma.
      
      Before setting the ids->entries to the new array, there must be a wmb()
      to make sure that the memcpyed contents of the new array are visible
      before the new array becomes visible.
      5e1341d1
    • Andrew Morton's avatar
      [PATCH] radix-tree reinitialisation fix · ca22d5dd
      Andrew Morton authored
      This patch fixes a problem which was discovered by Vladimir Saveliev
      <vs@namesys.com>
      
      Radix trees have a `height' field, which defines how far the pages are
      from the root of the tree.  It starts out at zero and increases as the
      trees depth is grown.
      
      But it is never decreased.  It cannot be decreased without a full tree
      traversal.
      
      Because radix_tree_delete() does not decrease `height', we end up
      returning inodes to their filesystem's inode slab cache with a non-zero
      height.
      
      And when that inode is reused from slab for a new file, it still has a
      non-zero height.  So we're breaking the slab rules by not putting
      objects back in a fully reinitialised state.
      
      So the new file starts out life with whatever height the previous owner
      of the inode had.  Which is space- and speed-inefficient.
      
      The most efficient place to fix this would be in destroy_inode().  But
      that only fixes the problem for inodes - there are other users of radix
      trees.
      
      So fix it in radix_tree_delete(): if the tree was emptied, reset
      `height' to zero.
      ca22d5dd
    • Andrew Morton's avatar
      [PATCH] shmdt bugfix · 33487c87
      Andrew Morton authored
      Patch from Hugh Dickins <hugh@veritas.com>
      
      Fixes the Oracle startup problem reported by Alessandro Suardi.
      
      Reverts a "simplification" to shmdt() which was wrong if subsequent
      mprotects broke up the original VMA, or if parts of it were munmapped.
      33487c87
    • Andrew Morton's avatar
      [PATCH] misc · a838ea3b
      Andrew Morton authored
      - I hit a BUG in end_swap_bio_read() under heavy load.  The page
        wasn't locked.  No idea how this can happen :(
      
        Add a BUG at submission time to catch a caller reading into an
        unlocked swapcache page.
      
      - Remove a debug check from destroy_inode() - it was in the wrong leg
        of the `if' statement anyway.
      a838ea3b
    • Neil Brown's avatar
      [PATCH] kNFSd - 2 of 2 - Change NFSv4 reply encoding to cope with multiple pages. · dcffe12e
      Neil Brown authored
      This allows NFSv4 responses to cover move than one page.  There are
      still limits though.  There can be at most one 'data' response which
      includes READ, READLINK, READDIR.  For these responses, the interesting
      data goes in a separate page or, for READ, list of pages.
      
      All responses before the 'data' response must fit in one page, and all
      responses after it must also fit in one (separate) page.
      dcffe12e
    • Neil Brown's avatar
      [PATCH] kNFSd - 1 of 2 - Change NFSv4 xdr decoding to cope with separate pages. · 89fc0a31
      Neil Brown authored
      Now that nfsd uses a list of pages for requests instead of
      one large buffer, NFSv4 need to know about this.
      
      The most interesting part of this is that it is possible
      that section of a request, like a path name, could span
      two pages, so we need to be able to kmalloc as little bit
      of space to copy them into, and make sure they get
      freed later.
      89fc0a31
    • Anton Blanchard's avatar
      [PATCH] disable old stat on ppc64 · 586a5a35
      Anton Blanchard authored
      We don't implement the ancient stat syscalls on ppc64 since early libcs
      wont run on ppc64 (they hardcode the incorrect cacheline size).
      586a5a35
    • Linus Torvalds's avatar
      Merge bk://are.twiddle.net/axp-2.5 · f3a7e4f1
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      f3a7e4f1
    • Linus Torvalds's avatar
      Merge http://linux-acpi.bkbits.net/linux-acpi · 63a84559
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      63a84559
    • Trond Myklebust's avatar
      [PATCH] Split buffer overflow checking out of struct nfs4_compound · dccb90df
      Trond Myklebust authored
      Here is the a pre-patch in the attempt to get rid of 'struct
      nfs4_compound', and the associated horrible union in 'struct
      nfs4_op'.
      
      It splits out the fields that are meant to do buffer overflow checking
      and iovec adjusting on the XDR received/sent data. It moves support
      for that nto the dedicated structure 'xdr_stream', and the associated
      functions 'xdr_reserve_space()', 'xdr_inline_decode()'.
      
      The patch also expands out the all macros ENCODE_HEAD, ENCODE_TAIL,
      ADJUST_ARGS and DECODE_HEAD, as well as most of the DECODE_TAILs.
      dccb90df
    • Tom Rini's avatar
      [PATCH] Add back in <asm/system.h> and <linux/linkage.h> to <linux/interrupt.h> · 241c59e2
      Tom Rini authored
      linux/interrupt.h needs:
      	asm/system.h: smb_mb()
      	linux/linkage.h: asmlinkage/FASTCALL/etc.
      241c59e2
    • Dominik Brodowski's avatar
      [PATCH] cpufreq: cleanups · 0c7eef6a
      Dominik Brodowski authored
      This changes the return type of the verify and setpolicy functions from
      void to int.  While doing this, I've changed the values for minimum and
      maximum supported frequency to be per CPU, as UltraSPARC needs this.
      
      Additionally, small cleanups in various drivers.
      0c7eef6a
    • Ivan Kokshaysky's avatar
      [PATCH] PCI: rename exported pbus_* functions · 645e448c
      Ivan Kokshaysky authored
      Traditional naming in pci/setup-xx code assumes that
      pdev_*/pbus_* functions are private, everything visible
      from outer world should be pci_*.
      645e448c
    • Stelian Pop's avatar
      [PATCH] meye driver update · 034f2e11
      Stelian Pop authored
      The most important changes are:
      	- allocate buffers on open(), not module load;
      	- correct some failed allocation paths;
      	- use wait_event;
      	- C99 structs inits;
      034f2e11
    • Stelian Pop's avatar
      [PATCH] sonypi driver update · eaac83e4
      Stelian Pop authored
      The most important changes are:
      	* add suspend/resume support to the sonypi driver (not
      	  based on driverfs however) (Florian Lohoff);
      	* add "Zoom" and "Thumbphrase" buttons (Francois Gurin);
      	* add camera and lid events for C1XE (Kunihiko IMAI);
      	* add a mask parameter letting the user choose what kind
      	  of events he wants;
      	* use ACPI ec_read/ec_write when available in order to
      	  play nice when latest ACPI is enabled;
      	* several source cleanups.
      eaac83e4
    • Linus Torvalds's avatar
      Merge bk://linux-dj.bkbits.net/watchdog · d29cb98f
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      d29cb98f
    • Dave Jones's avatar
      f374b3d4
    • Andries E. Brouwer's avatar
      [PATCH] fcntl fix · 619a67aa
      Andries E. Brouwer authored
      Today we return EINVAL for fcntl with a lock with negative length.
      POSIX-2001 says that the lock covers start .. start+len-1 if len >= 0
      and start+len .. start-1 if len < 0.
      619a67aa
    • Robert Read's avatar
      [PATCH] fix intermezzo compile · 3eebeb8e
      Robert Read authored
      3eebeb8e
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/davem/BK/net-2.5 · 12265655
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      12265655
  2. 21 Nov, 2002 13 commits