]> git.neil.brown.name Git - history.git/log
history.git
23 years ago[PATCH] Fix cs89x0 warnings
Alan Cox [Sun, 6 Oct 2002 08:57:13 +0000 (01:57 -0700)]
[PATCH] Fix cs89x0 warnings

23 years ago[PATCH] Clean up sf16fmi radio
Alan Cox [Sun, 6 Oct 2002 08:57:07 +0000 (01:57 -0700)]
[PATCH] Clean up sf16fmi radio

23 years ago[PATCH] flush the right thing in the rd cache
Alan Cox [Sun, 6 Oct 2002 08:57:02 +0000 (01:57 -0700)]
[PATCH] flush the right thing in the rd cache

(From Matthew Wilcox)

23 years ago[PATCH] update docs to match maestro3 changes
Alan Cox [Sun, 6 Oct 2002 08:56:57 +0000 (01:56 -0700)]
[PATCH] update docs to match maestro3 changes

23 years ago[PATCH] fix warning in longhaul.c
Alan Cox [Sun, 6 Oct 2002 08:56:50 +0000 (01:56 -0700)]
[PATCH] fix warning in longhaul.c

23 years ago[PATCH] forward port toughbook fixes for maestro3
Alan Cox [Sun, 6 Oct 2002 08:56:45 +0000 (01:56 -0700)]
[PATCH] forward port toughbook fixes for maestro3

(Jaroslav you may want to clone this into ALSA if ALSA lacks this one)

23 years agokbuild: Fix make clean in scripts/lxdialog
Kai Germaschewski [Sun, 6 Oct 2002 06:28:32 +0000 (01:28 -0500)]
kbuild: Fix make clean in scripts/lxdialog

23 years agokbuild: Fix kallsyms build
Kai Germaschewski [Sun, 6 Oct 2002 06:21:07 +0000 (01:21 -0500)]
kbuild: Fix kallsyms build

After reverting my nice but totally broken idea about accelerating
the linking steps, make the three-stage .tmp_kallsyms.o generation
/ addition work again.

Yeah, that means that we now link vmlinux three times when
CONFIG_KALLSYMS is set, and that's annoying.

23 years agoCset exclude: kai@tp1.ruhr-uni-bochum.de|ChangeSet|20021005215705|12351
Kai Germaschewski [Sat, 5 Oct 2002 22:45:01 +0000 (17:45 -0500)]
Cset exclude: kai@tp1.ruhr-uni-bochum.de|ChangeSet|20021005215705|12351

23 years agoMerge mulgrave.(none):/home/jejb/BK/scsi-sd-cache-2.5
James Bottomley [Sat, 5 Oct 2002 21:10:13 +0000 (17:10 -0400)]
Merge mulgrave.(none):/home/jejb/BK/scsi-sd-cache-2.5
into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5

23 years agoMerge mulgrave.(none):/home/jejb/BK/scsi-sg-sleep-fix-2.5
James Bottomley [Sat, 5 Oct 2002 21:04:55 +0000 (17:04 -0400)]
Merge mulgrave.(none):/home/jejb/BK/scsi-sg-sleep-fix-2.5
into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5

23 years ago[SCSI] sd moved synchronisation from release to detach
James Bottomley [Sat, 5 Oct 2002 20:26:00 +0000 (16:26 -0400)]
[SCSI] sd moved synchronisation from release to detach

23 years ago[PATCH] acsi switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 14:31:51 +0000 (07:31 -0700)]
[PATCH] acsi switched to alloc_disk()

That's the last one.  Now we can start doing refcounting...

23 years ago[PATCH] smbfs compile fix
Andrew Morton [Sat, 5 Oct 2002 14:22:54 +0000 (07:22 -0700)]
[PATCH] smbfs compile fix

smbfs compilation fix

23 years agoDon't add the $(obj) prefix twice..
Linus Torvalds [Sat, 5 Oct 2002 14:22:26 +0000 (07:22 -0700)]
Don't add the $(obj) prefix twice..

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make
Linus Torvalds [Sat, 5 Oct 2002 14:08:20 +0000 (07:08 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agokbuild: Fix arch/i386/boot clean targets
Kai Germaschewski [Sat, 5 Oct 2002 17:41:37 +0000 (12:41 -0500)]
kbuild: Fix arch/i386/boot clean targets

We removed some files which are long since dead, but on the other
hand forgot some of the current ones.

Also, add a missing ) in a warning (introduced and fixed by Sam Ravnborg ;)

23 years agokbuild: fix make -jN warnings
Kai Germaschewski [Sat, 5 Oct 2002 16:00:49 +0000 (11:00 -0500)]
kbuild: fix make -jN warnings

If you hide the sub-make in a function, 'make' needs a little help...

23 years ago[PATCH] cpqarray switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 13:55:35 +0000 (06:55 -0700)]
[PATCH] cpqarray switched to alloc_disk()

In addition to usual switch and cleanup, switched the damn thing
to use of module_init/module_exit (and removed call from device_init()).

23 years agoMake wildcard dependency filenames be relative, not absolute.
Linus Torvalds [Sat, 5 Oct 2002 13:27:03 +0000 (06:27 -0700)]
Make wildcard dependency filenames be relative, not absolute.

That also matches the other dependency filenames these days,
and makes the tree more position-independent.

23 years ago[PATCH] fix of bug in previous DAC960 patch
Alexander Viro [Sat, 5 Oct 2002 12:34:32 +0000 (05:34 -0700)]
[PATCH] fix of bug in previous DAC960 patch

Missed memset() when switching DAC960 to alloc_disk().  Fixed.

23 years ago[PATCH] cciss.c switched to use of alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 12:34:24 +0000 (05:34 -0700)]
[PATCH] cciss.c switched to use of alloc_disk()

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make
Linus Torvalds [Sat, 5 Oct 2002 12:27:27 +0000 (05:27 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agokbuild: Put .bss back to the end of vmlinux
Kai Germaschewski [Sat, 5 Oct 2002 12:20:36 +0000 (07:20 -0500)]
kbuild: Put .bss back to the end of vmlinux

The kallsyms patches added __kallsyms as last section into vmlinux,
behind .bss.

This was done to save two additional kallsyms passes, since as the
added section was last, it did not change the symbols before it.

With the new infrastructure in the top-level Makefile, we do not need
to do full relinks for these passes, so they are cheaper. We now
use one additional link/kallsyms run to be able to place the __kallsyms
section before .bss. The other pass is saved by adding an empty but
allocated __kallsyms section in kernel/kallsyms.c, so the first kallsyms
pass already generates a section of the final size.

23 years agokbuild: Generalize adding of additional sections to vmlinux
Kai Germaschewski [Sat, 5 Oct 2002 11:57:05 +0000 (06:57 -0500)]
kbuild: Generalize adding of additional sections to vmlinux

kallsyms needs to actually have a final vmlinux to extract the symbols,
and then add this information as a new section to the final vmlinux.

Currently, we basically just do the vmlinux link twice, adding
.tmp_kallsyms.o the second time. However, it's actually possible to just
link together the temporary vmlinux generated the first time and the
new object file directly without going back to all the single parts
that the temporary vmlinux was linked from.

This mechanism should be useful for sparc as well, where the btfix
mechanism needs an already linked vmlinux, too.

IMPORTANT: This does only work as desired if the link script can be
used recursively, i.e.

ld <flags> -T arch/$(ARCH)/vmlinux.lds.s -o vmlinux.test vmlinux

generates a vmlinux.test which is identical to vmlinux.
arch/i386/vmlinux.lds.S needed a little tweaking, so probably the
other archs do as well.

23 years ago[PATCH] unistd.h cleanups
Brian Gerst [Sat, 5 Oct 2002 11:38:59 +0000 (04:38 -0700)]
[PATCH] unistd.h cleanups

This patch removes the stubs for syscalls that are not used from the
kernel anymore.

23 years ago[PATCH] DAC960 switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:23:11 +0000 (04:23 -0700)]
[PATCH] DAC960 switched to alloc_disk()

23 years ago[PATCH] paride floppy switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:23:05 +0000 (04:23 -0700)]
[PATCH] paride floppy switched to alloc_disk()

23 years ago[PATCH] acorn floppy switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:58 +0000 (04:22 -0700)]
[PATCH] acorn floppy switched to alloc_disk()

23 years ago[PATCH] amiga floppy switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:53 +0000 (04:22 -0700)]
[PATCH] amiga floppy switched to alloc_disk()

23 years ago[PATCH] atari floppy switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:47 +0000 (04:22 -0700)]
[PATCH] atari floppy switched to alloc_disk()

23 years ago[PATCH] xpram switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:41 +0000 (04:22 -0700)]
[PATCH] xpram switched to alloc_disk()

23 years ago[PATCH] jsflash switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:36 +0000 (04:22 -0700)]
[PATCH] jsflash switched to alloc_disk()

23 years ago[PATCH] swim* switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:31 +0000 (04:22 -0700)]
[PATCH] swim* switched to alloc_disk()

23 years ago[PATCH] ubd switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:23 +0000 (04:22 -0700)]
[PATCH] ubd switched to alloc_disk()

23 years ago[PATCH] dasd switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:18 +0000 (04:22 -0700)]
[PATCH] dasd switched to alloc_disk()

23 years ago[PATCH] nbd switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:13 +0000 (04:22 -0700)]
[PATCH] nbd switched to alloc_disk()

23 years ago[PATCH] stram/z2ram switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:07 +0000 (04:22 -0700)]
[PATCH] stram/z2ram switched to alloc_disk()

23 years ago[PATCH] i2o switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:22:02 +0000 (04:22 -0700)]
[PATCH] i2o switched to alloc_disk()

23 years ago[PATCH] acorn mfm switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:21:56 +0000 (04:21 -0700)]
[PATCH] acorn mfm switched to alloc_disk()

23 years ago[PATCH] xd switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:21:50 +0000 (04:21 -0700)]
[PATCH] xd switched to alloc_disk()

23 years ago[PATCH] ps2esdi switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:21:43 +0000 (04:21 -0700)]
[PATCH] ps2esdi switched to alloc_disk()

23 years ago[PATCH] umem switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:21:38 +0000 (04:21 -0700)]
[PATCH] umem switched to alloc_disk()

23 years ago[PATCH] initrd fix (missing set_capacity)
Alexander Viro [Sat, 5 Oct 2002 11:21:33 +0000 (04:21 -0700)]
[PATCH] initrd fix (missing set_capacity)

23 years ago[PATCH] pcd switched to alloc_disk()
Alexander Viro [Sat, 5 Oct 2002 11:21:29 +0000 (04:21 -0700)]
[PATCH] pcd switched to alloc_disk()

23 years ago[PATCH] fix sgalaxy.c driver cli/sti code.
Jaroslav Kysela [Sat, 5 Oct 2002 10:28:45 +0000 (03:28 -0700)]
[PATCH] fix sgalaxy.c driver cli/sti code.

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5
Kai Germaschewski [Sat, 5 Oct 2002 10:24:13 +0000 (05:24 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5.make

23 years agokbuild: Don't descend into arch/i386/boot
Kai Germaschewski [Sat, 5 Oct 2002 10:22:57 +0000 (05:22 -0500)]
kbuild: Don't descend into arch/i386/boot

We don't descend anymore when building vmlinux, so don't do so for
the i386 specific boot targets, either.

Plus, more cleanup in arch/i386/Makefile

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make
Linus Torvalds [Sat, 5 Oct 2002 10:14:44 +0000 (03:14 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoIncrease the delay in waiting for pcmcia drivers to register.
Linus Torvalds [Sat, 5 Oct 2002 10:13:01 +0000 (03:13 -0700)]
Increase the delay in waiting for pcmcia drivers to register.

Reported by Peter Osterlund.

(Yeah, the real fix would be to make driver services not have to
know about low-level pcmcia core drivers beforehand, but that's not
life as we know it right now).

23 years agoMerge bk://bk.arm.linux.org.uk
Linus Torvalds [Sat, 5 Oct 2002 09:56:47 +0000 (02:56 -0700)]
Merge bk://bk.arm.linux.org.uk
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[SERIAL] Fix serial includes for modversions/modules.
Russell King [Sun, 6 Oct 2002 01:02:22 +0000 (02:02 +0100)]
[SERIAL] Fix serial includes for modversions/modules.
This fixes the build error that occurs if you have a certain selection
of module/modversions settings.

23 years ago[SERIAL] Allow PCMCIA serial cards to work again.
Russell King [Sun, 6 Oct 2002 00:30:10 +0000 (01:30 +0100)]
[SERIAL] Allow PCMCIA serial cards to work again.
The PCMCIA layer claims the IO or memory regions for all cards.  This
means that any port registered via 8250_cs must not cause the 8250
code to claim the resources itself.

We also add support for iomem-based ports at initialisation time for
PPC.

23 years agokbuild: Nicer warnings
Kai Germaschewski [Sat, 5 Oct 2002 09:42:22 +0000 (04:42 -0500)]
kbuild: Nicer warnings

Improve the warning messages when using obsolete features, kill one
remaining user of $(list-multi)

(by Sam Ravnborg)

I also made O_TARGET != built-in.o an error, since compatibility code for
that case has already been dropped

23 years agoMerge bk://linux-bt.bkbits.net/bt-2.5
Linus Torvalds [Sat, 5 Oct 2002 09:38:31 +0000 (02:38 -0700)]
Merge bk://linux-bt.bkbits.net/bt-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[SCSI] tidy up sd synchronize cache messages into a single line
James Bottomley [Sat, 5 Oct 2002 08:01:57 +0000 (04:01 -0400)]
[SCSI] tidy up sd synchronize cache messages into a single line

23 years ago[PATCH] clean up ll_rw_block()
Andrew Morton [Sat, 5 Oct 2002 03:35:59 +0000 (20:35 -0700)]
[PATCH] clean up ll_rw_block()

Hardly anything uses this function, so the debug checks in there are
not of much value.

The check for bdev_readonly() should be done in submit_bio().

Local variable `major' was altogether unused.

23 years ago[PATCH] stricter dirty memory clamping
Andrew Morton [Sat, 5 Oct 2002 03:35:54 +0000 (20:35 -0700)]
[PATCH] stricter dirty memory clamping

The ratelimiting logic in balance_dirty_pages_ratelimited() is designed
to prevent excessive calls to the expensive get_page_state(): On a big
machine we only check to see if we're over dirty memory limits once per
1024 dirtyings per cpu.

This works OK normally, but it has the effect of allowing each process
to go 1024 pages over the dirty limit before it gets throttled.

So if someone runs 16000 tiobench threads, they can go 16G over the
dirty memory threshold and die the death of buffer_head consumption.
Because page dirtiness pins the page's buffer_heads, defeating the
special buffer_head reclaim logic.

I'd left this overshoot artifact in place because it provides a degree
of adaptivity - of someone if running hundreds of dirtying processes
(dbench!) then they do want to overshoot the dirty memory limit.

But it's hard to balance, and is really not worth the futzing around.
So change the logic to only perform the get_page_state() call rate
limiting if we're known to be under the dirty memory threshold.

23 years ago[PATCH] remove page->virtual
Andrew Morton [Sat, 5 Oct 2002 03:35:48 +0000 (20:35 -0700)]
[PATCH] remove page->virtual

The patch removes page->virtual for all architectures which do not
define WANT_PAGE_VIRTUAL.  Hash for it instead.

Possibly we could define WANT_PAGE_VIRTUAL for CONFIG_HIGHMEM4G, but it
seems unlikely.

A lot of the pressure went off kmap() and page_address() as a result of
the move to kmap_atomic().  That should be the preferred way to address
CPU load in the set_page_address() and page_address() hashing and
locking.

If kmap_atomic is not usable then the next best approach is for users
to cache the result of kmap() in a local rather than calling
page_address() repeatedly.

One heavy user of kmap() and page_address() is the ext2 directory code.

On a 7G Quad PIII, running four concurrent instances of

while true
do
find /usr/src/linux > /dev/null
done

on ext2 with everything cached, profiling shows that the new hashed
set_page_address() and page_address() implementations consume 0.4% and
1.3% of CPU time respectively.   I think that's OK.

23 years ago[PATCH] use buffer_boundary() for writeback scheduling hints
Andrew Morton [Sat, 5 Oct 2002 03:35:43 +0000 (20:35 -0700)]
[PATCH] use buffer_boundary() for writeback scheduling  hints

This is the replacement for write_mapping_buffers().

Whenever the mpage code sees that it has just written a block which had
buffer_boundary() set, it assumes that the next block is dirty
filesystem metadata.  (This is a good assumption - that's what
buffer_boundary is for).

So we do a lookup in the blockdev mapping for the next block and it if
is present and dirty, then schedule it for IO.

So the indirect blocks in the blockdev mapping get merged with the data
blocks in the file mapping.

This is a bit more general than the write_mapping_buffers() approach.
write_mapping_buffers() required that the fs carefully maintain the
correct buffers on the mapping->private_list, and that the fs call
write_mapping_buffers(), and the implementation was generally rather
yuk.

This version will "just work" for filesystems which implement
buffer_boundary correctly.  Currently this is ext2, ext3 and some
not-yet-merged reiserfs patches.  JFS implements buffer_boundary() but
does not use ext2-like layouts - so there will be no change there.

Works nicely.

23 years ago[PATCH] remove write_mapping_buffers()
Andrew Morton [Sat, 5 Oct 2002 03:35:37 +0000 (20:35 -0700)]
[PATCH] remove write_mapping_buffers()

When the global buffer LRU was present, dirty ext2 indirect blocks were
automatically scheduled for writeback alongside their data.

I added write_mapping_buffers() to replace this - the idea was to
schedule the indirects close in time to the scheduling of their data.

It works OK for small-to-medium sized files but for large, linear writes
it doesn't work: the request queue is completely full of file data and
when we later come to scheduling the indirects, their neighbouring data
has already been written.

So writeback of really huge files tends to be a bit seeky.

So.  Kill it.  Will fix this problem by other means.

23 years ago[PATCH] use bio_get_nr_vecs() for sizing direct-io BIOs
Andrew Morton [Sat, 5 Oct 2002 03:35:29 +0000 (20:35 -0700)]
[PATCH] use bio_get_nr_vecs() for sizing direct-io BIOs

From Badari Pulavarty.

Rather than allocating maximum-sized BIOs, use the new
bio_get_nr_vecs() hint when sizing the BIOs.

Also keep track of the approximate upper-bound on the number of pages
remaining to do, so we can again avoid allocating excessively-sized
BIOs.

23 years ago[PATCH] Documentation/filesystems/ext3.txt
Andrew Morton [Sat, 5 Oct 2002 03:35:24 +0000 (20:35 -0700)]
[PATCH] Documentation/filesystems/ext3.txt

By Vincent Hanquez <tab@tuxfamily.org>

23 years ago[PATCH] use bio_get_nr_vecs() hint for pagecache writeback
Andrew Morton [Sat, 5 Oct 2002 03:35:18 +0000 (20:35 -0700)]
[PATCH] use bio_get_nr_vecs() hint for pagecache writeback

Use the bio_get_nr_pages() hint for sizing the BIOs which writeback
allocates.

23 years ago[PATCH] fix reclaim for higher-order allocations
Andrew Morton [Sat, 5 Oct 2002 03:35:13 +0000 (20:35 -0700)]
[PATCH] fix reclaim for higher-order allocations

The page reclaim logic will bail out if all zones are at pages_high.
But if the caller is requesting a higher-order allocation we need to go
on and free more memory anyway.  That's the only way we have of
addressing buddy fragmentation.

23 years ago[PATCH] separation of direct-reclaim and kswapd functions
Andrew Morton [Sat, 5 Oct 2002 03:35:08 +0000 (20:35 -0700)]
[PATCH] separation of direct-reclaim and kswapd functions

There is some lack of clarity in what kswapd does and what
direct-reclaim tasks do; try_to_free_pages() tries to service both
functions, and they are different.

- kswapd's role is to keep all zones on its node at

zone->free_pages >= zone->pages_high.

  and to never stop as long as any zones do not meet that condition.

- A direct reclaimer's role is to try to free some pages from the
  zones which are suitable for this particular allocation request, and
  to return when that has been achieved, or when all the relevant zones
  are at

zone->free_pages >= zone->pages_high.

The patch explicitly separates these two code paths; kswapd does not
run try_to_free_pages() any more.  kswapd should not be aware of zone
fallbacks.

23 years ago[PATCH] mempool wakeup fix
Andrew Morton [Sat, 5 Oct 2002 03:35:02 +0000 (20:35 -0700)]
[PATCH] mempool wakeup fix

When the mempool is empty, tasks wait on the waitqueue in "exclusive
mode".  So one task is woken for each returned element.

But if the number of tasks which are waiting exceeds the mempool's
specified size (min_nr), mempool_free() ends up deciding that as the
pool is fully replenished, there cannot possibly be anyone waiting for
more elements.

But with 16384 threads running tiobench, it happens.

We could fix this with a waitqueue_active() test in mempool_free().
But rather than adding that test to this fastpath I changed the wait to
be non-exclusive, and used the prepare_to_wait/finish_wait API, which
will be quite beneficial in this case.

Also, convert the schedule() in mempool_alloc() to an io_schedule(), so
this sleep time is accounted as "IO wait".  Which is a bit approximate
- we don't _know_ that the caller is really waiting for IO completion.
But for most current users of mempools, io_schedule() is more accurate
than schedule() here.

23 years ago[PATCH] O_DIRECT invalidation fix
Andrew Morton [Sat, 5 Oct 2002 03:34:57 +0000 (20:34 -0700)]
[PATCH] O_DIRECT invalidation fix

If the alignment checks in generic_direct_IO() fail, we end up not
forcing writeback of dirty pagecache pages, but we still run
invalidate_inode_pages2().  The net result is that dirty pagecache gets
incorrectly removed.  I guess this will expose unwritten disk blocks.

So move the sync up into generic_file_direct_IO(), where we perform the
invalidation.  So we know that pagecache and disk are in sync before we
do anything else.

23 years ago[PATCH] truncate fixes
Andrew Morton [Sat, 5 Oct 2002 03:34:50 +0000 (20:34 -0700)]
[PATCH] truncate fixes

The new truncate code needs to check page->mapping after acquiring the
page lock.  Because the page could have been unmapped by page reclaim
or by invalidate_inode_pages() while we waited for the page lock.

Also, the page may have been moved between a tmpfs inode and
swapper_space.  Because we don't hold the mapping->page_lock across the
entire truncate operation any more.

Also, change the initial truncate scan (the non-blocking one which is
there to stop as much writeout as possible) so that it is immune to
other CPUs decreasing page->index.

Also fix negated test in invalidate_inode_pages2().  Not sure how that
got in there.

23 years ago[PATCH] distinguish between address span of a zone and the number
Andrew Morton [Sat, 5 Oct 2002 03:34:45 +0000 (20:34 -0700)]
[PATCH] distinguish between address span of a zone and the number

From David Mosberger

The patch below fixes a bug in nr_free_zone_pages() which shows when a
zone has hole.  The problem is due to the fact that "struct zone"
didn't keep track of the amount of real memory in a zone.  Because of
this, nr_free_zone_pages() simply assumed that a zone consists entirely
of real memory.  On machines with large holes, this has catastrophic
effects on VM performance, because the VM system ends up thinking that
there is plenty of memory left over in a zone, when in fact it may be
completely full.

The patch below fixes the problem by replacing the "size" member in
"struct zone" with "spanned_pages" and "present_pages" and updating
page_alloc.c.

23 years ago[PATCH] remove debug code from list_del()
Andrew Morton [Sat, 5 Oct 2002 03:34:40 +0000 (20:34 -0700)]
[PATCH] remove debug code from list_del()

It hasn't caught any bugs, and it is causing confusion over whether
this is a permanent part of list_del() behaviour.

23 years ago[PATCH] hugetlb kmap fix
Andrew Morton [Sat, 5 Oct 2002 03:34:35 +0000 (20:34 -0700)]
[PATCH] hugetlb kmap fix

From Bill Irwin

This patch makes alloc_hugetlb_page() kmap() the memory it's zeroing,
and cleans up a tiny bit of list handling on the side.  Without this
fix, it oopses every time it's called.

23 years ago[PATCH] fix /proc/vmstat:pgpgout/pgpgin
Andrew Morton [Sat, 5 Oct 2002 03:34:30 +0000 (20:34 -0700)]
[PATCH] fix /proc/vmstat:pgpgout/pgpgin

These numbers are being sent to userspace as number-of-sectors, whereas
they should be number-of-k.

23 years ago[PATCH] struct super_block cleanup - ext3
Brian Gerst [Sat, 5 Oct 2002 03:16:00 +0000 (20:16 -0700)]
[PATCH] struct super_block cleanup - ext3

Removes the last member of the union, ext3.

23 years ago[PATCH] struct super_block cleanup - hpfs
Brian Gerst [Sat, 5 Oct 2002 03:15:55 +0000 (20:15 -0700)]
[PATCH] struct super_block cleanup - hpfs

Remove hpfs_sb from struct super_block.

23 years ago[PATCH] SCSI tape devfs & driverfs fix
Kai Mäkisara [Sat, 5 Oct 2002 03:15:50 +0000 (20:15 -0700)]
[PATCH] SCSI tape devfs & driverfs fix

fix device numbering in driverfs and devfs broken by previous patch
(bug found by Bjoern A. Zeeb (bz@zabbadoz.net))

23 years ago[PATCH] Updated NatSemi SCx200 patches for Linux-2.5
Christer Weinigel [Sat, 5 Oct 2002 03:13:10 +0000 (20:13 -0700)]
[PATCH] Updated NatSemi SCx200 patches for Linux-2.5

This patch adds support for the National Semiconductor SCx200
processor family to Linux 2.5.

The patch consists of the following drivers:

  arch/i386/kernel/scx200.c -- give kernel access to the GPIO pins

  drivers/chars/scx200_gpio.c -- give userspace access to the GPIO pins
  drivers/chars/scx200_wdt.c -- watchdog timer driver

  drivers/i2c/scx200_i2c.c -- use any two GPIO pins as an I2C bus
  drivers/i2c/scx200_acb.c -- driver for the Access.BUS hardware

  drivers/mtd/maps/scx200_docflash.c -- driver for a CFI flash connected
                                      to the DOCCS pin

23 years ago[PATCH] FAT/VFAT memory corruption during mount()
Petr Vandrovec [Sat, 5 Oct 2002 01:30:22 +0000 (18:30 -0700)]
[PATCH] FAT/VFAT memory corruption during mount()

This patch fixes memory corruption during vfat mount: one byte
before mount options is overwritten by ',' since strtok->strsep
conversion happened.

This patch also fixes another problem introduced by strtok->strsep
conversion: VFAT requires that FAT does not modify passed options,
but unfortunately FAT driver fails to preserve options string if
there is more than one consecutive comma in option string.

23 years ago[PATCH] sg might_sleep fixes
Mike Anderson [Fri, 4 Oct 2002 18:10:06 +0000 (14:10 -0400)]
[PATCH] sg might_sleep fixes

This is a update to a previous patch that fixed some sg might sleep
errors.

This patch corrects a problem in sg.c where a lock is held during calls to
vmalloc and calls for device model registration.

Note:
Douglas Gilbert is the maintainer of this driver.
dougg@gear.torque.net
http://www.torque.net/sg/

During Douglas Gilbert's time-off he connects when he can so it
maybe a bit until he can address this.

In the interim this patch should fix the problem, and
still provide for safe additions.

The full patch is available at:
http://www-124.ibm.com/storageio/patches/2.5/sg

-andmike
--
Michael Anderson
andmike@us.ibm.com

 sg.c |   83 +++++++++++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 52 insertions(+), 31 deletions(-)

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5
Kai Germaschewski [Fri, 4 Oct 2002 17:38:48 +0000 (12:38 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5.make

23 years agokbuild: small fixes
Kai Germaschewski [Fri, 4 Oct 2002 17:32:50 +0000 (12:32 -0500)]
kbuild: small fixes

Fix "make xconfig" and remove a reference to drivers/sbus/audio,
which does not exist.

(Sam Ravnborg)

23 years agoUse dump_stack() for the USB storage buffer size checking,
Linus Torvalds [Fri, 4 Oct 2002 12:28:09 +0000 (05:28 -0700)]
Use dump_stack() for the USB storage buffer size checking,
to make it possible to track down.

23 years agoUndo due to weird behaviour on various boxes
Linus Torvalds [Fri, 4 Oct 2002 11:06:15 +0000 (04:06 -0700)]
Undo due to weird behaviour on various boxes
Cset exclude: ink@jurassic.park.msu.ru|ChangeSet|20021003201553|58706

23 years agoFix designated initializers in RFCOMM TTY layer.
Maksim Krasnyanskiy [Fri, 4 Oct 2002 10:48:36 +0000 (03:48 -0700)]
Fix designated initializers in RFCOMM TTY layer.

23 years ago[PATCH] NFS: readdir reply truncated!
Trond Myklebust [Fri, 4 Oct 2002 10:46:25 +0000 (03:46 -0700)]
[PATCH] NFS: readdir reply truncated!

Duh... Even a simple one-liner test can be wrong. The really sad bit
is that I made the same mistake 3 weeks ago, fixed it, and then lost
track of the fix...

To recap fix to fix: A valid end of directory marker has to read
(entry[0]==0 && entry[1]!=0). Here is final correct (I hope) patch.

23 years ago[PATCH] 64-bit timer fix
Anton Blanchard [Fri, 4 Oct 2002 10:46:19 +0000 (03:46 -0700)]
[PATCH] 64-bit timer fix

I think I have found it and it only hits on a 64 bit machine.

If the timeout is big enough we still need to initialise timer->entry.
Otherwise bad things happen we we hit del_timer.

23 years agoRFCOMM protocol support.
Maksim Krasnyanskiy [Fri, 4 Oct 2002 10:38:30 +0000 (03:38 -0700)]
RFCOMM protocol support.
RFCOMM socket and TTY emulation APIs.

23 years agoBNEP (Bluetooth Network Encapsulation Protocol) support.
Maksim Krasnyanskiy [Fri, 4 Oct 2002 09:41:50 +0000 (02:41 -0700)]
BNEP (Bluetooth Network Encapsulation Protocol) support.

23 years agokbuild: Fix build with modversions
Kai Germaschewski [Fri, 4 Oct 2002 09:26:11 +0000 (04:26 -0500)]
kbuild: Fix build with modversions

Sam Ravnborg missed a place I missed converting, and I found another one,
too.

23 years agoSyncup HCI UART driver with 2.4.x.
Maksim Krasnyanskiy [Fri, 4 Oct 2002 08:48:36 +0000 (01:48 -0700)]
Syncup HCI UART driver with 2.4.x.
New improved UART proto interface.
Support for BCSP protocol.

23 years agoBluetooth USB driver update.
Maksim Krasnyanskiy [Fri, 4 Oct 2002 07:55:25 +0000 (00:55 -0700)]
Bluetooth USB driver update.
Remove firmware loading support, it's handled in hotplug.
Other minor fixes.

23 years agoMerge http://linuxusb.bkbits.net/pci-2.5
Linus Torvalds [Fri, 4 Oct 2002 07:37:57 +0000 (00:37 -0700)]
Merge http://linuxusb.bkbits.net/pci-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoExport the gdt table GPL-only for APM.
Linus Torvalds [Fri, 4 Oct 2002 06:27:33 +0000 (23:27 -0700)]
Export the gdt table GPL-only for APM.

23 years agoMerge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
Greg Kroah-Hartman [Fri, 4 Oct 2002 06:10:09 +0000 (23:10 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
into kroah.com:/home/greg/linux/BK/pci-2.5

23 years agoPCI: remove pcibios_find_device() from the 53c7,8xx.c SCSI driver
Greg Kroah-Hartman [Fri, 4 Oct 2002 05:49:31 +0000 (22:49 -0700)]
PCI: remove pcibios_find_device() from the 53c7,8xx.c SCSI driver

23 years agoMerge s390 update into current tree
Linus Torvalds [Fri, 4 Oct 2002 04:57:30 +0000 (21:57 -0700)]
Merge s390 update into current tree

23 years agoMerge bk://linux-bt.bkbits.net/bt-2.5
Maksim Krasnyanskiy [Fri, 4 Oct 2002 04:53:20 +0000 (21:53 -0700)]
Merge bk://linux-bt.bkbits.net/bt-2.5
into viper.qualcomm.com:/usr/src/bt-2.5

23 years ago[PATCH] s390 update (27/27): control characters.
Martin Schwidefsky [Fri, 4 Oct 2002 04:51:19 +0000 (21:51 -0700)]
[PATCH] s390 update (27/27): control characters.

Replace IMMEDIATE_BH bottom half by tasklets in helper functions for
console control characters. Fix a race condition and make it look nicer.

23 years ago[PATCH] s390 update (26/27): /proc/interrupts.
Martin Schwidefsky [Fri, 4 Oct 2002 04:51:04 +0000 (21:51 -0700)]
[PATCH] s390 update (26/27): /proc/interrupts.

Don't create /proc/interrupts on s390.

23 years ago[PATCH] s390 update (25/27): init call.
Martin Schwidefsky [Fri, 4 Oct 2002 04:50:48 +0000 (21:50 -0700)]
[PATCH] s390 update (25/27): init call.

Remove call to s390_init_machine_check in init/main.c, the new boot code
on s390 calls it via arch_initcall.