]> git.hungrycats.org Git - linux/log
linux
22 years ago[ALPHA] Add __param support to link script.
Richard Henderson [Sat, 21 Dec 2002 20:42:05 +0000 (12:42 -0800)]
[ALPHA] Add __param support to link script.

22 years agoRemove old pci_dma_supported(), this is done by the generic
Linus Torvalds [Sat, 21 Dec 2002 14:42:37 +0000 (06:42 -0800)]
Remove old pci_dma_supported(), this is done by the generic
device DMA now (see <linux/pci.h> for the compat wrapper).

22 years agoallow pci primary busses to have parents in the device model
James Bottomley [Sat, 21 Dec 2002 17:16:30 +0000 (11:16 -0600)]
allow pci primary busses to have parents in the device model

22 years agogeneric device DMA API
James Bottomley [Sat, 21 Dec 2002 16:37:49 +0000 (10:37 -0600)]
generic device DMA API

add dma_ API to mirror pci_ DMA API but phrased to use struct
device instead of struct pci_dev.

See Documentation/DMA-API.txt for details

22 years agoMore mtrr/if.c fixes
Linus Torvalds [Sat, 21 Dec 2002 11:17:47 +0000 (03:17 -0800)]
More mtrr/if.c fixes
 - printk is not an acceptable substitute for errors
 - fix indentation of mtrr_close()
 - fix duplicate mtrr "release" fn pointer initializer

22 years ago[PATCH] remove unused macro MAP_ALIGN()
Andrew Morton [Sat, 21 Dec 2002 10:02:04 +0000 (02:02 -0800)]
[PATCH] remove unused macro MAP_ALIGN()

Patch from Christoph Hellwig <hch@lst.de>

remove unused macro MAP_ALIGN()

22 years ago[PATCH] remove memclass()
Andrew Morton [Sat, 21 Dec 2002 09:08:37 +0000 (01:08 -0800)]
[PATCH] remove memclass()

From hch.  Nothing is using the memclass() predicate.

22 years ago[PATCH] don't cacheline-align radix_tree_nodes
Andrew Morton [Sat, 21 Dec 2002 09:08:32 +0000 (01:08 -0800)]
[PATCH] don't cacheline-align radix_tree_nodes

They are 260 bytes.  We can get 15 per page without cacheline
alignment.  But we're currently only getting ten per page on P4.

22 years ago[PATCH] hugetlbfs: set inode->i_size
Andrew Morton [Sat, 21 Dec 2002 09:08:27 +0000 (01:08 -0800)]
[PATCH] hugetlbfs: set inode->i_size

An `ls' in hugetlbfs currently shows all files having zero size.

So, part-cosmetic, part-informative, we here set i_size to represent the
index of the highest present page in the mapping, plus one.

22 years ago[PATCH] hugetlb: report shared memory attachment counts
Andrew Morton [Sat, 21 Dec 2002 09:08:22 +0000 (01:08 -0800)]
[PATCH] hugetlb: report shared memory attachment counts

From Rohit Seth

Attached is a patch that passes the correct information back to user
land for number of attachments to shared memory segment.  I could have
done few more changes in a way nattach is getting set for regular cases
now, but just want to limit it at this point.

22 years ago[PATCH] hugetlb bugfixes
Andrew Morton [Sat, 21 Dec 2002 09:08:17 +0000 (01:08 -0800)]
[PATCH] hugetlb bugfixes

From Rohit Seth

1) Bug fixes (mainly in the unsuccessful attempts of hugepages).

   i) not modifying the value of key for unsuccessful key
      allocation

   ii) Correct usage of mmap_sem in free_hugepages

   iii) Proper unlocking of key->lock for partial hugepage
        allocations

2) Include the IPC_LOCK for permission to use hugepages via the
   syscall interface.  This brings the syscall interface into line with
   the hugetlbfs interface.

   It also adds permits users who are in the superuser group to
   access hugetlb resources.  This is so that database servers can run
   without elevated permissions.

3) Increment the key_counts during forks to correctly identify the
   number of processes references a key.

22 years ago[PATCH] ext3: fix buffer dirtying
Andrew Morton [Sat, 21 Dec 2002 09:08:12 +0000 (01:08 -0800)]
[PATCH] ext3: fix buffer dirtying

This is a forward-port from 2.4.  One of Stephen's recent fixes.  I
managed to merge up only half of it.  Here is the rest.  It should fix
the asserton failure reported by Robert Macaulay
<robert_macaulay@dell.com>

"There was a race window in buffer refiling where we could temporarily
 expose the journal's internal BH_JBDDirect flag as BH_Dirty, which is
 visible to the rest of the VFS.  That doesn't affect the journaling,
 because we hold journal_head locks while the buffer is in this
 transient state, but bdflush can see the buffer and write it out
 unexpectedly, causing ext3 to find the buffer in an unexpected state
 later."

 The fix simply keeps the dirty bits clear during the internal buffer
 processing, restoring the state to the private BH_JBDDirect once
 refiling is complete."

22 years ago[PATCH] ext3 use-after-free bugfix
Andrew Morton [Sat, 21 Dec 2002 09:08:07 +0000 (01:08 -0800)]
[PATCH] ext3 use-after-free bugfix

If ext3_add_nondir() fails it will do an iput() of the inode.  But we
continue to run ext3_mark_inode_dirty() against the potentially-freed
inode.  This oopses when slab poisoning is enabled.

Fix it so that we only run ext3_mark_inode_dirty() if the inode was
successfully instantiated.

22 years ago[PATCH] rename locals in ext2_new_block()
Andrew Morton [Sat, 21 Dec 2002 09:08:02 +0000 (01:08 -0800)]
[PATCH] rename locals in ext2_new_block()

Renames the local variables `bh2', `i', `j', 'k', and `tmp' to
something meanigful.  This brings ext2_new_block() into line with
ext3_new_block().

22 years ago[PATCH] ext2: smarter block allocation startup
Andrew Morton [Sat, 21 Dec 2002 09:07:57 +0000 (01:07 -0800)]
[PATCH] ext2: smarter block allocation startup

The same thing, for ext2.

22 years ago[PATCH] ext3: smarter block allocation startup
Andrew Morton [Sat, 21 Dec 2002 09:07:52 +0000 (01:07 -0800)]
[PATCH] ext3: smarter block allocation startup

When an ext3 (or ext2) file is first created the filesystem has to
choose the initial starting block for its data allocations.  In the
usual (new-file) case, that initial goal block is the zeroeth block of
a particular blockgroup.

This is the worst possible choice.  Because it _guarantees_ that this
file's blocks will be pessimally intermingled with the blocks of
another file which is growing within the same blockgroup.

We've always had this problem with files in the same directory.  With
the introduction of the Orlov allocator we now have the problem with
files in different directories.  And it got noticed.  This is the cause
of the post-Orlov 50% slowdown in dbench throughput on ext3 on
write-through caching SCSI on SMP.  And 25% in ext2.

It doesn't happen on uniprocessor because a single CPU will not exhibit
sufficient concurrency in allocation against two or more files.

It will happen on uniprocessor if the files are growing slowly.

It has always happened if the files are in the same directory.

ext2 has the same problem but it is siginficantly less damaging there
because of ext2's eight-block per-inode preallocation window.

The patch largely solves this problem by not always starting the
allocation goal at the zeroeth block of the blockgroup.  We instead
chop the blockgroup into sixteen starting points and select one of those
based on the lower four bits of the calling process's PID.

The PID was chosen as the index because this will help to ensure that
related files have the same starting goal.  If one process is slowly
writing two files in the same directory, we still lose.

Using the PID in the heuristic is a bit weird.  As an alternative I
tried using the file's directory's i_ino.  That fixed the dbench
problem OK but caused a 15% slowdown in the fast-growth `untar a kernel
tree' workload.  Because this approach will cause files which are in
different directories to spread out more.  Suppressing that behaviour
when the files are all being created by the same process is a
reasonable heuristic.

I changed dbench to never unlink its files, and used e2fsck to
determine how many fragmented files were present after a `dbench 32'
run.  With this patch and the next couple, ext2's fragmentation went
from 22% to 13% and ext3's from 25% to 10.4%.

22 years ago[PATCH] ext2/3: better starting group for S_ISREG files
Andrew Morton [Sat, 21 Dec 2002 09:07:46 +0000 (01:07 -0800)]
[PATCH] ext2/3: better starting group for S_ISREG files

ext2 places non-directory objects into the same blockgroup as their
directory, as long as that directory has free inodes.  It does this
even if there are no free blocks in that blockgroup (!).

This means that if there are lots of files being created at a common
point in the tree, they _all_ have the same starting blockgroup.  For
each file we do a big search forwards for the first block and the
allocations end up getting intermingled.

So this patch will avoid placing new inodes in block groups which have
no free blocks.

So far so good.  But this means that if a lot of new files are being
created under a directory (or multiple directories) which are in the
same blockgroup, all the new inodes will overflow into the same
blockgroup.  No improvement at all.

So the patch arranges for the new inode locations to be "spread out"
across different blockgroups if they are not going to be placed in
their directory's block group.  This is done by adding parent->i_ino
into the starting point for the quadratic hash.  i_ino was chosen so
that files which are in the same directory will tend to all land in the
same new blockgroup.

22 years ago[PATCH] ext2/3 commentary and cleanup
Andrew Morton [Sat, 21 Dec 2002 09:07:39 +0000 (01:07 -0800)]
[PATCH] ext2/3 commentary and cleanup

- Add some (much-needed) commentary to the ext2/ext3 block allocator
  state fields.

- Remove the SEARCH_FROM_ZERO debug code.  I wrote that to trigger
  some race and it hasn't been used in a year.

22 years ago[PATCH] Give kswapd writeback higher priority than pdflush
Andrew Morton [Sat, 21 Dec 2002 09:07:33 +0000 (01:07 -0800)]
[PATCH] Give kswapd writeback higher priority than pdflush

The `low latency page reclaim' design works by preventing page
allocators from blocking on request queues (and by preventing them from
blocking against writeback of individual pages, but that is immaterial
here).

This has a problem under some situations.  pdflush (or a write(2)
caller) could be saturating the queue with highmem pages.  This
prevents anyone from writing back ZONE_NORMAL pages.  We end up doing
enormous amounts of scenning.

A test case is to mmap(MAP_SHARED) almost all of a 4G machine's memory,
then kill the mmapping applications.  The machine instantly goes from
0% of memory dirty to 95% or more.  pdflush kicks in and starts writing
the least-recently-dirtied pages, which are all highmem.  The queue is
congested so nobody will write back ZONE_NORMAL pages.  kswapd chews
50% of the CPU scanning past dirty ZONE_NORMAL pages and page reclaim
efficiency (pages_reclaimed/pages_scanned) falls to 2%.

So this patch changes the policy for kswapd.  kswapd may use all of a
request queue, and is prepared to block on request queues.

What will now happen in the above scenario is:

1: The page alloctor scans some pages, fails to reclaim enough
   memory and takes a nap in blk_congetion_wait().

2: kswapd() will scan the ZONE_NORMAL LRU and will start writing
   back pages.  (These pages will be rotated to the tail of the
   inactive list at IO-completion interrupt time).

   This writeback will saturate the queue with ZONE_NORMAL pages.
   Conveniently, pdflush will avoid the congested queues.  So we end up
   writing the correct pages.

In this test, kswapd CPU utilisation falls from 50% to 2%, page reclaim
efficiency rises from 2% to 40% and things are generally a lot happier.

The downside is that kswapd may now do a lot less page reclaim,
increasing page allocation latency, causing more direct reclaim,
increasing lock contention in the VM, etc.  But I have not been able to
demonstrate that in testing.

The other problem is that there is only one kswapd, and there are lots
of disks.  That is a generic problem - without being able to co-opt
user processes we don't have enough threads to keep lots of disks saturated.

One fix for this would be to add an additional "really congested"
threshold in the request queues, so kswapd can still perform
nonblocking writeout.  This gives kswapd priority over pdflush while
allowing kswapd to feed many disk queues.  I doubt if this will be
called for.

22 years ago[PATCH] Remove PF_NOWARN
Andrew Morton [Sat, 21 Dec 2002 09:07:27 +0000 (01:07 -0800)]
[PATCH] Remove PF_NOWARN

We keep getting in a mess with the current->flags setting and
unsetting.

Remove current->flags:PF_NOWARN and create __GFP_NOWARN instead.

22 years ago[PATCH] misc fixes
Andrew Morton [Sat, 21 Dec 2002 09:07:22 +0000 (01:07 -0800)]
[PATCH] misc fixes

- A C99 initialiser in drivers/char/mem.c

- Remove unneeded deref in madvise_willneed()

22 years ago[PATCH] Add generic_file_readonly_mmap() for nommu
Andrew Morton [Sat, 21 Dec 2002 09:07:17 +0000 (01:07 -0800)]
[PATCH] Add generic_file_readonly_mmap() for nommu

Add a generic_file_readonly_mmap() for !CONFIG_MMU.

22 years ago[PATCH] more informative slab poisoning
Andrew Morton [Sat, 21 Dec 2002 09:07:12 +0000 (01:07 -0800)]
[PATCH] more informative slab poisoning

slab poisons objects with 0x5a both when they are constructed and when
they are freed.  So it is not possible to tell whether a deref of
0x5a5a5a5a was a use-before-initialisation bug or a use-after-free bug.

The patch changes it so that

1) A deref of 0x5a5a5a5a means use-of-uninitialised-memory

2) A deref of 0x6b6b6b6b means use-of-freed-memory.

22 years ago[PATCH] fix use-after-free bug in move_vma()
Andrew Morton [Sat, 21 Dec 2002 09:07:06 +0000 (01:07 -0800)]
[PATCH] fix use-after-free bug in move_vma()

move_vma() calls do_munmap() and then uses the memory at *new_vma.

But when starting X11 it just happens that the memory which do_munmap
unmapped had the same start address and the range at *new_vma.  So new_vma
is freed by do_munmap().

This was never noticed before because (vm_flags & VM_LOCKED) evaluates
false when vm_flags is 0x5a5a5a5a.  But I just changed that to 0x6b6b6b6b
and boom - we call make_pages_present() with start == end == 0x6b6b6b6b and
it goes BUG.

So I think the right fix here is for move_vma() to not inspect the values
of any vma's after it has called do_munmap().

The patch does that, for `new_vma'.

The local variable `vma' is also being used after the call do do_munmap(),
and this may also be a bug.  Proving that this is not so, and adding a
comment to explain why is hereby added to Hugh's todo list ;)

22 years ago[PATCH] fix a page dirtying race in vmscan.c
Andrew Morton [Sat, 21 Dec 2002 09:07:00 +0000 (01:07 -0800)]
[PATCH] fix a page dirtying race in vmscan.c

There's a small window in which another CPU could dirty the page after
we've cleaned it, and before we've moved it to mapping->dirty_pages().
The end result is a dirty page on mapping->locked_pages, which is
wrong.

So take mapping->page_lock before clearing the dirty bit.

22 years ago[PATCH] sync_fs deadlock fix
Andrew Morton [Sat, 21 Dec 2002 09:06:54 +0000 (01:06 -0800)]
[PATCH] sync_fs deadlock fix

Running a `mount -o remount' against ext3 deadlocks if there is heavy
write activity.  It's a sort of AB/BA deadlock caused by calling
log_wait_commit() under lock_super().  The caller holds lock_super()
and is waiting for a commit, but the commit cannot complete because
lock_super() is also used in the block allocator.

The way we fixed this in tha past is to drop the superblock lock inside
ext3.  The way this patch fixes it is to arrange for lock_super() to
not be held around the ->sync_fs() call.

Also: sync_filesystems is on the sys_sync() path and is racy wrt
unmount.  Check sb->s_root after taking sb->s_umount.

22 years agoSysenter cleanups (originals by Brian Gerst, updated and expanded by me):
Linus Torvalds [Sat, 21 Dec 2002 08:02:05 +0000 (00:02 -0800)]
Sysenter cleanups (originals by Brian Gerst, updated and expanded by me):
 - set up kernel stack pointer for sysenter at each context switch.
 - disable sysenter while in vm86 mode.
 - clean up mtrr number defines and SEP feature testing

22 years agoGet rid of silly printk's in recent mtrr driver changes.
Linus Torvalds [Sat, 21 Dec 2002 05:47:13 +0000 (21:47 -0800)]
Get rid of silly printk's in recent mtrr driver changes.

22 years ago[PATCH] PCI: setup-xx fixes
Ivan Kokshaysky [Sat, 21 Dec 2002 05:24:28 +0000 (21:24 -0800)]
[PATCH] PCI: setup-xx fixes

Don't disable PCI devices before changing the BARs, as discussed
recently.  Disabling PCI_COMMAND_MASTER bit is an obvious bug.

Further, pdev_enable_device() is a leftover from very old (2.0, I guess)
alpha PCI code.  It's used in pci_assign_unassigned_resources() to
enable *every* PCI device in the system.  So, if we have two graphic
cards on the same bus, both with legacy VGA IO...  oops.

Actually, only alpha relied on that due to the lack of
pcibios_enable_device (which has been already fixed).

22 years ago[PATCH] new attempt at sys_poll allocation (was: Re: Poll patches..)
Manfred Spraul [Sat, 21 Dec 2002 04:38:39 +0000 (20:38 -0800)]
[PATCH] new attempt at sys_poll allocation (was: Re: Poll patches..)

This replaces the dynamically allocated two-level array in sys_poll with
a dynamically allocated linked list.  The current implementation causes
at least two alloc/free calls, even if only one or two descriptors are
polled.  This reduces that to one alloc/free, and the .text segment is
around 220 bytes shorter.  The microbenchmark that polls one pipe fd is
around 30% faster.  [1140 cycles instead of 1604 cycles, Celeron mobile
1.13 GHz]

22 years agoMerge bk://linux-dj.bkbits.net/agpgart
Linus Torvalds [Sat, 21 Dec 2002 03:41:35 +0000 (19:41 -0800)]
Merge bk://linux-dj.bkbits.net/agpgart
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoMerge tetrachloride.(none):/mnt/stuff/kernel/2.5/bk-linus
Dave Jones [Sat, 21 Dec 2002 13:42:32 +0000 (12:42 -0100)]
Merge tetrachloride.(none):/mnt/stuff/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/stuff/kernel/2.5/agpgart

22 years ago[AGP] Make things compile again if AGP3=n
Dave Jones [Sat, 21 Dec 2002 13:28:52 +0000 (12:28 -0100)]
[AGP] Make things compile again if AGP3=n

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Sat, 21 Dec 2002 03:18:20 +0000 (19:18 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[AGP] Make i845g use correct initialisation routine.
Michael Milligan [Fri, 20 Dec 2002 17:59:34 +0000 (16:59 -0100)]
[AGP] Make i845g use correct initialisation routine.

22 years agoia64: Fix printing of memory attributes.
David Mosberger [Fri, 20 Dec 2002 16:57:36 +0000 (08:57 -0800)]
ia64: Fix printing of memory attributes.

22 years agoia64: Finish 2.5.52+ merge. lia64-v2.5.52+
David Mosberger [Fri, 20 Dec 2002 15:51:49 +0000 (07:51 -0800)]
ia64: Finish 2.5.52+ merge.

22 years agoIgnore ".ko" files - kernel module objects.
Linus Torvalds [Fri, 20 Dec 2002 15:10:28 +0000 (07:10 -0800)]
Ignore ".ko" files - kernel module objects.

22 years agoMake NFS compile even without NFS_V4 support
Linus Torvalds [Fri, 20 Dec 2002 15:09:30 +0000 (07:09 -0800)]
Make NFS compile even without NFS_V4 support

22 years agoMerge bk://lsm.bkbits.net/linus-2.5
Linus Torvalds [Fri, 20 Dec 2002 14:46:47 +0000 (06:46 -0800)]
Merge bk://lsm.bkbits.net/linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoMerge clashes between the req_offset() and the XDR cleanups
Linus Torvalds [Fri, 20 Dec 2002 14:34:03 +0000 (06:34 -0800)]
Merge clashes between the req_offset() and the XDR cleanups

22 years ago[PATCH] cleanup: simplify req_offset function in NFS client
Chuck Lever [Fri, 20 Dec 2002 14:27:42 +0000 (06:27 -0800)]
[PATCH] cleanup: simplify req_offset function in NFS client

Description:
  everywhere the NFS client uses the req_offset() function today, it adds
  req->wb_offset to the result.  this patch simply makes "+req->wb_offset"
  a part of the req_offset() function.

Test status:
  Passes all Connectathon '02 tests with v2, v3, UDP and TCP.  Passes
  NFS torture tests on an x86 UP highmem system.

22 years ago[PATCH] give NFS client a "set_page_dirty" address space op.
Chuck Lever [Fri, 20 Dec 2002 14:27:37 +0000 (06:27 -0800)]
[PATCH] give NFS client a "set_page_dirty" address space op.

Description:
  The default set_page_dirty address space op is too heavyweight for NFS,
  which doesn't use buffers.

22 years ago[PATCH] use kmap_atomic instaed of kmap in NFS client
Chuck Lever [Fri, 20 Dec 2002 14:27:31 +0000 (06:27 -0800)]
[PATCH] use kmap_atomic instaed of kmap in NFS client

Description:
  andrew morton suggested there are places in the NFS client that could
  make use of kmap_atomic instead of vanilla kmap in order to improve
  scalability on 8-way and higher SMP systems.

Test status:
  Passes all Connectathon '02 tests with v2 and v3, UDP and TCP; passes
  NFS torture tests on a UP HIGHMEM x86 system.

22 years ago[PATCH] Reduce redundancy in v850 linker scripts
Miles Bader [Fri, 20 Dec 2002 14:18:55 +0000 (06:18 -0800)]
[PATCH] Reduce redundancy in v850 linker scripts

This moves most of the duplicated text in the various v850 platform-
specific linker scripts (each of which was previously completely
standalone) into cpp macros in vmlinux.lds.S, which are then used by the
platform linker scripts as appropriate.  This should make the scripts a
lot easier to maintain.

Also, a number of linker-script bugs are fixed.

22 years ago[PATCH] Pass extra signal handler args correctly on the v850
Miles Bader [Fri, 20 Dec 2002 14:18:34 +0000 (06:18 -0800)]
[PATCH] Pass extra signal handler args correctly on the v850

The old code seems completely wrong; I guess it was just left over from
whichever architecture this code was copied from.

22 years ago[PATCH] Add some v850 elf constants
Miles Bader [Fri, 20 Dec 2002 14:18:29 +0000 (06:18 -0800)]
[PATCH] Add some v850 elf constants

These are used for the new in-kernel module loader (actually not all the
relocation types are used right now, but are included for completeness).

Only the EM_CYGNUS_V850 macro, which is in a global namespace, is added
to <linux/elf.h>; the relocation types, which are private to the v850,
are added to <asm-v850/elf.h>.  [Perhaps some other archs can do a
similar split, to reduce the bloat in <linux/elf.h>]

22 years ago[PATCH] Add v850 support for `sys_restart_syscall'
Miles Bader [Fri, 20 Dec 2002 14:18:24 +0000 (06:18 -0800)]
[PATCH] Add v850 support for `sys_restart_syscall'

22 years ago[PATCH] Make some symbol exports conditional on CONFIG_MMU
Miles Bader [Fri, 20 Dec 2002 14:18:18 +0000 (06:18 -0800)]
[PATCH] Make some symbol exports conditional on CONFIG_MMU

A few symbols are only defined when CONFIG_MMU=y, but are exported
(by kernel/ksyms.c) unconditionally.  This patch makes them conditional.

22 years ago[PATCH] Update v850 includes for slimmed-down sched.h
Miles Bader [Fri, 20 Dec 2002 14:18:12 +0000 (06:18 -0800)]
[PATCH] Update v850 includes for slimmed-down sched.h

Adds extra includes needed because sched.h doesn't include them anymore,
and removes includes of sched.h where they're not really necessary.

22 years ago[PATCH] Fix CPU bitmask truncation
William Lee Irwin III [Fri, 20 Dec 2002 14:05:38 +0000 (06:05 -0800)]
[PATCH] Fix CPU bitmask truncation

Fix task->cpus_allowed bitmask truncations on 64.bit architectures.

Originally by Bjorn Helgaas for 2.4.x.

22 years agoMerge master.kernel.org:/home/hch/BK/xfs/linux-2.5
Linus Torvalds [Fri, 20 Dec 2002 13:59:30 +0000 (05:59 -0800)]
Merge master.kernel.org:/home/hch/BK/xfs/linux-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[XFS] "merge" the 2.4 fsx fix for block size < page size to 2.5. This needed
Russell Cattelan [Fri, 20 Dec 2002 22:22:30 +0000 (23:22 +0100)]
[XFS] "merge" the 2.4 fsx fix for block size < page size to 2.5.  This needed
major changes to actually fit.

SGI Modid: 2.5.x-xfs:slinx:132210a

22 years ago[XFS] Change some %x formats to %p for pointers
Eric Sandeen [Fri, 20 Dec 2002 22:11:41 +0000 (23:11 +0100)]
[XFS] Change some %x formats to %p for pointers

SGI Modid: 2.5.x-xfs:slinx:135454a

22 years ago[XFS] Fix some setxattr compiler warnings (const).
Nathan Scott [Fri, 20 Dec 2002 22:07:22 +0000 (23:07 +0100)]
[XFS] Fix some setxattr compiler warnings (const).

SGI Modid: 2.5.x-xfs:slinx:135453a

22 years ago[XFS] Fix up setting up of sector size for the superblock buffer after the
Nathan Scott [Fri, 20 Dec 2002 22:05:45 +0000 (23:05 +0100)]
[XFS] Fix up setting up of sector size for the superblock buffer after the
very first read on mount.  Make some of the surrounding code dealing
with buffers consistent.

SGI Modid: 2.5.x-xfs:slinx:135452a

22 years ago[XFS] fix an out-of-date comment
Christoph Hellwig [Fri, 20 Dec 2002 22:04:02 +0000 (23:04 +0100)]
[XFS] fix an out-of-date comment

SGI Modid: 2.5.x-xfs:slinx:135307a

22 years ago[XFS] remove references to i_dev, it's gone in recent kernels
Christoph Hellwig [Fri, 20 Dec 2002 22:00:54 +0000 (23:00 +0100)]
[XFS] remove references to i_dev, it's gone in recent kernels

SGI Modid: 2.5.x-xfs:slinx:135308a

22 years ago[XFS] Some cleanup, some more unwritten extent related changes.
Nathan Scott [Fri, 20 Dec 2002 21:57:59 +0000 (22:57 +0100)]
[XFS] Some cleanup, some more unwritten extent related changes.

SGI Modid: 2.5.x-xfs:slinx:135207a

22 years ago[XFS] Fix size check for realtime devices.
Nathan Scott [Fri, 20 Dec 2002 21:56:27 +0000 (22:56 +0100)]
[XFS] Fix size check for realtime devices.

SGI Modid: 2.5.x-xfs:slinx:135199a

22 years ago[XFS] more dead code removal
Christoph Hellwig [Fri, 20 Dec 2002 21:54:51 +0000 (22:54 +0100)]
[XFS] more dead code removal

SGI Modid: 2.5.x-xfs:slinx:135153a

22 years ago[XFS] remove unused debugging code
Christoph Hellwig [Fri, 20 Dec 2002 21:51:33 +0000 (22:51 +0100)]
[XFS] remove unused debugging code

SGI Modid: 2.5.x-xfs:slinx:135137a

22 years ago[XFS] rework iocore infrastructure, remove some code and make it more
Stephen Lord [Fri, 20 Dec 2002 21:50:02 +0000 (22:50 +0100)]
[XFS] rework iocore infrastructure, remove some code and make it more
orthogonal. In addition, add some of the hooks for unwritten extents.

SGI Modid: 2.5.x-xfs:slinx:134603a

22 years ago[XFS] remove xfs_dm_send_create_event
Christoph Hellwig [Fri, 20 Dec 2002 21:48:20 +0000 (22:48 +0100)]
[XFS] remove xfs_dm_send_create_event

SGI Modid: 2.5.x-xfs:slinx:135038a

22 years ago[PATCH] Patch for affs: pr_debug() usage
Randy Dunlap [Fri, 20 Dec 2002 13:57:27 +0000 (05:57 -0800)]
[PATCH] Patch for affs: pr_debug() usage

pr_debug() is defined to print using KERN_DEBUG already,
so uses of it don't need to repeat KERN_DEBUG.

22 years ago[PATCH] Support for NFSv4 READ + WRITE attribute cache consistency
Trond Myklebust [Fri, 20 Dec 2002 13:43:41 +0000 (05:43 -0800)]
[PATCH] Support for NFSv4 READ + WRITE attribute cache consistency

Retrieve the post-operation attribute changes for NFSv4 READ and
WRITE operations. Unlike for NFSv2 and NFSv3, we do not retrieve the
full set of file attributes. The main reason for this is that
interpreting attributes is a much heavier task on NFSv4 (requiring, for
instance, translation of file owner names into uids ...). Hence

  For a READ request, we retrieve only the 'change attribute' (for cache
  consistency checking) and the atime.

  For a WRITE request, we retrieve the 'change attribute' and the file size.
  In addition, we retrieve the value of the change attribute prior to the
  write operation, in order to be able to do weak cache consistency checking.

22 years ago[PATCH] Clean up NFSv4 WRITE xdr path
Trond Myklebust [Fri, 20 Dec 2002 13:43:21 +0000 (05:43 -0800)]
[PATCH] Clean up NFSv4 WRITE xdr path

The following patch creates a clean XDR path for the NFSv4 write requests
instead of routing through encode_compound()/decode_compound().

22 years ago[PATCH] Clean up NFSv4 READ xdr path
Trond Myklebust [Fri, 20 Dec 2002 13:42:20 +0000 (05:42 -0800)]
[PATCH] Clean up NFSv4 READ xdr path

This creates a clean XDR path for the NFSv4 read requests instead of
routing through encode_compound()/decode_compound().  This eliminates
the intermediate step of setting up a struct nfs4_compound before
proceeding to XDR encoding, and removes the large 'switch()' statements
from the codepath altogether.

22 years ago[PATCH] make cpu serial number disable generic
Dave Jones [Fri, 20 Dec 2002 13:40:25 +0000 (05:40 -0800)]
[PATCH] make cpu serial number disable generic

This check needs to happen for all CPUs that support PN,
not just Intel.

From hpa and Pat Mochel.

22 years ago[PATCH] i2c size_t fix
Dave Jones [Fri, 20 Dec 2002 13:40:18 +0000 (05:40 -0800)]
[PATCH] i2c size_t fix

22 years ago[PATCH] swap.h doesn't use prefetching
Dave Jones [Fri, 20 Dec 2002 13:40:10 +0000 (05:40 -0800)]
[PATCH] swap.h doesn't use prefetching

22 years ago[PATCH] Cyrix 3 gcc options changed.
Dave Jones [Fri, 20 Dec 2002 13:40:04 +0000 (05:40 -0800)]
[PATCH] Cyrix 3 gcc options changed.

Newer gcc changes alignment flags from a -m to -f

22 years ago[PATCH] Add workaround for AMD8131 bug
Andi Kleen [Fri, 20 Dec 2002 13:37:57 +0000 (05:37 -0800)]
[PATCH] Add workaround for AMD8131 bug

Some revisions of the AMD8131 PCI-X bridge have a irq routing bug that appears
in IO-APIC mode. To work around it a bit needs to be set in this case.

22 years ago[PATCH] x86-64 relocations for elf.h
Andi Kleen [Fri, 20 Dec 2002 13:37:29 +0000 (05:37 -0800)]
[PATCH] x86-64 relocations for elf.h

This adds the x86-64 ELF relocations to include/linux/elf.h

This is needed for the new module loader.

22 years ago[PATCH] x86-64 merge
Andi Kleen [Fri, 20 Dec 2002 13:37:00 +0000 (05:37 -0800)]
[PATCH] x86-64 merge

This patch depends on the i386 MTRR driver cleanup I sent earlier.

 - Support non executable mappings for x86-64. data/heap are non executable
   by default now.
 - Beginnings of software suspend from Pavel (not working yet)
 - Support generic compat functions and remove some shared code
   in the 32bit emulation (Stephen Rothwell)
 - Support hugetlbfs
 - Some makefile updates
 - Make sure all 32bit emulation functions return long, not int.
   This fixes some problems with ERESTARTNOSYS.et.al. leaking to userspace.
 - Add new system calls.
 - Fix long standing fs/gs context switch bugs (thanks to Karsten Keil
   for helping to fix that mess). Also make sure the gs selector is
   set to 0 after an exec.
 - Simplify TLS switching
 - Paranoid CPUID check at bootup
 - Reorder scatterlist to be more space efficient (Jes Soerensen)
 - Enlarge 32bit address space to full 4GB.
 - Beginnings of 32bit SYSCALL support (not completely working yet
   and vsyscall page miss yet)
 - Various merges from i386
 - New module loader
 - Support threaded core dump (XMM saving for 32bit programs doesn't
   work, but it appears to be broken on i386 too)
 - Fix bug in signal stack rounding
 - Remove DRM 32bit emulation.
 - Use MTRR driver from i386
 - Use bootflag.c from i386
 - Various other fixes and cleanups.

22 years ago[PATCH] Some i386 cleanups - MTRR, bootflag
Andi Kleen [Fri, 20 Dec 2002 13:35:10 +0000 (05:35 -0800)]
[PATCH] Some i386 cleanups - MTRR, bootflag

This does:
 - fix one warning in bootflag.c
 - change a few longs to int and int to long in the MTRR driver
   to make it 64bit clean (should be a NOP for 32bit i386, but is needed
   for x86-64)
 - Convert the MTRR /proc interface to seq_file and remove the broken
   compute_ascii() hack.  This fixes some broken code e.g.  the old
   mtrr_write was completely broken because the loop checking for
   commands started with a "continue" - remove duplicated mtrr type
   strings.

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Fri, 20 Dec 2002 13:33:58 +0000 (05:33 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-dledford
Linus Torvalds [Fri, 20 Dec 2002 13:33:24 +0000 (05:33 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-dledford
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoaic7xxx_old/aic7xxx.h: Run time warning fix
Doug Ledford [Fri, 20 Dec 2002 16:01:03 +0000 (11:01 -0500)]
aic7xxx_old/aic7xxx.h: Run time warning fix

22 years agoChange all uses of device->request_queue (was struct, now pointer)
Doug Ledford [Fri, 20 Dec 2002 16:00:06 +0000 (11:00 -0500)]
Change all uses of device->request_queue (was struct, now pointer)
Update scsi_scan so that we don't pass around a scsi_device struct for
     scanning.  Instead, we pass around a request_queue during
     scanning and create and destroy device structs as needed.  This
     allows us to have a 1:1 correlation between scsi_alloc_sdev()
     and scsi_free_sdev() calls, which we didn't have before.

22 years agoaic7xxx_old: improve usage of pci_request_regions due to device contention
Doug Ledford [Fri, 20 Dec 2002 15:54:35 +0000 (10:54 -0500)]
aic7xxx_old: improve usage of pci_request_regions due to device contention

22 years ago[SOUND]: ioctl32/{ioctl32,rawmidi32,seq32,timer32}.c needs linux/fs.h
David S. Miller [Fri, 20 Dec 2002 11:35:39 +0000 (03:35 -0800)]
[SOUND]: ioctl32/{ioctl32,rawmidi32,seq32,timer32}.c needs linux/fs.h

22 years ago[SPARC64]: Some more compat stat syscall entry conversions.
David S. Miller [Fri, 20 Dec 2002 11:34:20 +0000 (03:34 -0800)]
[SPARC64]: Some more compat stat syscall entry conversions.

22 years ago[AGP] misplaced setting of bridge device.
Dave Jones [Fri, 20 Dec 2002 11:03:32 +0000 (10:03 -0100)]
[AGP] misplaced setting of bridge device.

22 years ago[SPARC64]: Fix some circular include deps.
David S. Miller [Fri, 20 Dec 2002 10:49:12 +0000 (02:49 -0800)]
[SPARC64]: Fix some circular include deps.

22 years ago[SPARC64]: Un-static cp_compat_stat.
David S. Miller [Fri, 20 Dec 2002 10:46:57 +0000 (02:46 -0800)]
[SPARC64]: Un-static cp_compat_stat.

22 years ago[SPARC]: Update for new do_coredump args.
James Morris [Fri, 20 Dec 2002 10:33:45 +0000 (02:33 -0800)]
[SPARC]: Update for new do_coredump args.

22 years ago[SPARC64]; Convert over to compat_clock_t and compat_sys_times.
David S. Miller [Fri, 20 Dec 2002 10:27:43 +0000 (02:27 -0800)]
[SPARC64]; Convert over to compat_clock_t and compat_sys_times.

22 years ago[SPARC64]: Define COMPAT_USER_HZ and compat_clock_t.
James Morris [Fri, 20 Dec 2002 10:26:23 +0000 (02:26 -0800)]
[SPARC64]: Define COMPAT_USER_HZ and compat_clock_t.

22 years ago[SPARC64]: Convert for stat/utime compat syscall changes.
David S. Miller [Fri, 20 Dec 2002 10:20:45 +0000 (02:20 -0800)]
[SPARC64]: Convert for stat/utime compat syscall changes.

22 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Fri, 20 Dec 2002 10:09:54 +0000 (02:09 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

22 years ago[FB]: Add readq/writeq for sparc.
David S. Miller [Fri, 20 Dec 2002 10:05:52 +0000 (02:05 -0800)]
[FB]: Add readq/writeq for sparc.

22 years ago[ATYFB]: Fix build error in sparc specific sections.
David S. Miller [Fri, 20 Dec 2002 10:05:06 +0000 (02:05 -0800)]
[ATYFB]: Fix build error in sparc specific sections.

22 years ago[SPARC]: Update asm/fbio.h for fb changes.
David S. Miller [Fri, 20 Dec 2002 10:04:01 +0000 (02:04 -0800)]
[SPARC]: Update asm/fbio.h for fb changes.

22 years ago[SPARC64]: Add sbus_{read,write}q.
David S. Miller [Fri, 20 Dec 2002 10:03:07 +0000 (02:03 -0800)]
[SPARC64]: Add sbus_{read,write}q.

22 years ago[SPARC64]: Update ioctl32 for fb changes.
David S. Miller [Fri, 20 Dec 2002 10:01:22 +0000 (02:01 -0800)]
[SPARC64]: Update ioctl32 for fb changes.

22 years ago[AGP] Readd module_exit function so that agpgart.ko can be unloaded.
Dave Jones [Fri, 20 Dec 2002 09:49:15 +0000 (08:49 -0100)]
[AGP] Readd module_exit function so that agpgart.ko can be unloaded.

22 years agoMerge tetrachloride.(none):/mnt/stuff/kernel/2.5/bk-linus
Dave Jones [Fri, 20 Dec 2002 09:37:29 +0000 (08:37 -0100)]
Merge tetrachloride.(none):/mnt/stuff/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/stuff/kernel/2.5/agpgart

22 years ago[AGP] agp_frontend_initialize() now gets called when a chipset driver registers,...
Dave Jones [Fri, 20 Dec 2002 08:50:21 +0000 (07:50 -0100)]
[AGP] agp_frontend_initialize() now gets called when a chipset driver registers, so it can't be __init any more.

22 years agocorrect compile warnings without Large Block Device support
James Bottomley [Fri, 20 Dec 2002 05:04:51 +0000 (23:04 -0600)]
correct compile warnings without Large Block Device support

Based on a patch from Andrew Morton.

Also checks to see if the sd device is bigger than the kernel can
support and prints out a warning in that case