]> git.hungrycats.org Git - linux/log
linux
23 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Fri, 4 Apr 2003 08:54:13 +0000 (00:54 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years ago[PATCH] md: Add some new lines to diagnostic printks.
Neil Brown [Thu, 3 Apr 2003 09:32:49 +0000 (01:32 -0800)]
[PATCH] md: Add some new lines to diagnostic printks.

Stops <6> appearing in middles of line and improves output.

23 years ago[PATCH] md: Cleanups for md to move device size calculations into personalities
Neil Brown [Thu, 3 Apr 2003 09:32:42 +0000 (01:32 -0800)]
[PATCH] md: Cleanups for md to move device size calculations into personalities

23 years ago[PATCH] md: Fix stupid oops in recent md.c module changes
Neil Brown [Thu, 3 Apr 2003 09:32:34 +0000 (01:32 -0800)]
[PATCH] md: Fix stupid oops in recent md.c module changes

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Thu, 3 Apr 2003 07:49:50 +0000 (23:49 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

23 years ago[MODULE]: On sparc, ignore undefined symbols of type STT_REGISTER.
David S. Miller [Thu, 3 Apr 2003 07:44:43 +0000 (23:44 -0800)]
[MODULE]: On sparc, ignore undefined symbols of type STT_REGISTER.

23 years ago[SPARC64]: Fix trap stack allocations so gcc-3.x builds work.
David S. Miller [Thu, 3 Apr 2003 05:34:27 +0000 (21:34 -0800)]
[SPARC64]: Fix trap stack allocations so gcc-3.x builds work.
1) Use PTREGS_OFF consistently
2) Define it to allocate STACKFRAME_SZ instead of REGWIN_SZ
3) Kill off REGWIN_SZ, replace with sizeof(struct reg_window).

23 years ago[SPARC64]: Missing break; statement in module reloc code.
David S. Miller [Thu, 3 Apr 2003 05:16:24 +0000 (21:16 -0800)]
[SPARC64]: Missing break; statement in module reloc code.

23 years ago[SPARC64]: Support OLO10 relocations for modules.
David S. Miller [Thu, 3 Apr 2003 04:55:19 +0000 (20:55 -0800)]
[SPARC64]: Support OLO10 relocations for modules.

23 years ago[SPARC64]: Fix boot target deps.
Ben Collins [Thu, 3 Apr 2003 01:44:37 +0000 (17:44 -0800)]
[SPARC64]: Fix boot target deps.

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Thu, 3 Apr 2003 01:36:45 +0000 (17:36 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Thu, 3 Apr 2003 00:59:51 +0000 (16:59 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[SPARC64]: Update defconfig.
David S. Miller [Thu, 3 Apr 2003 00:55:15 +0000 (16:55 -0800)]
[SPARC64]: Update defconfig.

23 years ago[SPARC64]: Dont transition in us2e drivers if divisor does not change.
David S. Miller [Thu, 3 Apr 2003 00:46:26 +0000 (16:46 -0800)]
[SPARC64]: Dont transition in us2e drivers if divisor does not change.

23 years ago[PATCH] ext3 journal commit I/O error fix
Andrew Morton [Thu, 3 Apr 2003 00:29:43 +0000 (16:29 -0800)]
[PATCH] ext3 journal commit I/O error fix

From: Hua Zhong <hzhong@cisco.com>

The current ext3 totally ignores I/O errors that happened during a
journal_force_commit time, causing user space to falsely believe it has
succeeded, which actually did not.

This patch  checks IO error during  journal_commit_transaction. and aborts
the journal when there is I/O error.

Originally I thought about reporting the error without doing aborting the
journal, but it probably needs a new flag. Aborting the journal seems to be
the easy way to  signal "hey sth is wrong..".

23 years ago[PATCH] ext3: create a slab cache for transaction handles
Andrew Morton [Thu, 3 Apr 2003 00:29:36 +0000 (16:29 -0800)]
[PATCH] ext3: create a slab cache for transaction handles

ext3 allocates and frees at least one handle structure for each system call.
kmalloc and kfree are apparent in the profiles.

Adding a slab cache for these objects takes the overhead for a write() from
1.63 microseconds down to 1.56.

23 years ago[PATCH] ext3_commit_write speedup
Andrew Morton [Thu, 3 Apr 2003 00:29:28 +0000 (16:29 -0800)]
[PATCH] ext3_commit_write speedup

For an appending write, ext3_commit_write() will call the expensive
ext3_mark_inode_dirty() twice.  Once in generic_commit_write()'s extension of
i_size and once in ext3_commit_write() itself where i_disksize is updated.

But by updating i_disksize _before_ calling generic_commit_write() these can
be piggybacked.

The patch takes the overhead of a write() from 1.96 microseconds down to
1.63.

23 years ago[PATCH] ext3_mark_inode_dirty() speedup
Andrew Morton [Thu, 3 Apr 2003 00:29:21 +0000 (16:29 -0800)]
[PATCH] ext3_mark_inode_dirty() speedup

ext3_mark_inode_dirty() (and several other callers) use the
ext3_reserve_inode_write() and ext3_mark_ioc_dirty() pair for journalling an
inode's backing block.

Because ext3_reserve_inode_write() gets journalling access to the block there
is no need for ext3_mark_iloc_dirty() to do it as well.

This change reduces the overhead of a write() from 2.7 microseconds to 1.95
on a 2.7G P4.

23 years ago[PATCH] Fix jbd assert failure on IO error.
Andrew Morton [Thu, 3 Apr 2003 00:29:13 +0000 (16:29 -0800)]
[PATCH] Fix jbd assert failure on IO error.

From: Stephen Tweedie <sct@redhat.com>

The buffer_uptodate flag gets cleared on IO failure, and this can panic jbd
when it tries to write such a buffer.  Relax the panic to be just a warning.

23 years ago[PATCH] Add less-severe assert-failure form for ext3.
Andrew Morton [Thu, 3 Apr 2003 00:29:06 +0000 (16:29 -0800)]
[PATCH] Add less-severe assert-failure form for ext3.

From: Stephen Tweedie <sct@redhat.com>

Add a new form of assert failure in ext3 which allows us to flag events which
are *usually* bugs, but which can be legally triggered in the presence of IO
failures.  Don't panic the kernel on such errors unless we've defined
#JBD_PARANOID_IOFAIL, which will normally be set only for testing purposes.

23 years ago[PATCH] remove dparent_lock
Andrew Morton [Thu, 3 Apr 2003 00:28:58 +0000 (16:28 -0800)]
[PATCH] remove dparent_lock

The big SMP machines are seeing quite some contention in dnotify_parent()
(via vfs_write).  This function is hammering the global dparent_lock.

However we don't actually need a global dparent_lock for pinning down
dentry->d_parent.  We can use dentry->d_lock for this.  That is already being
held across d_move.

This patch speeds up SDET on the 16-way by 5% and wipes dnotify_parent() off
the profiles.

It also uninlines dnofity_parent().

It also uses spin_lock(), which is faster than read_lock().

I'm not sure that we need to take both the source and target dentry's d_lock
in d_move.

The patch also does lots of s/__inline__/inline/ in dcache.h

23 years ago[PATCH] real_lookup race fix
Andrew Morton [Thu, 3 Apr 2003 00:28:49 +0000 (16:28 -0800)]
[PATCH] real_lookup race fix

From: Maneesh Soni <maneesh@in.ibm.com>

Here is a patch to use seqlock for real_lookup race with d_lookup as suggested
by Linus. The race condition can result in duplicate dentry when d_lookup
fails due concurrent d_move in some unrelated directory.

Apart from real_lookup, lookup_hash()->cached_lookup() can also fail due
to same reason. So, for that I am doing the d_lookup again.

Now we have __d_lookup (called from do_lookup() during pathwalk) and
d_lookup which uses seqlock to protect againt rename race.

dcachebench numbers (lower is better) don't have much difference on a 4-way
PIII xeon SMP box.

base-2565
Average usec/iteration  19059.4
Standard Deviation      503.07

base-2565 + seq_lock
Average usec/iteration  18843.2
Standard Deviation      450.57

23 years ago[PATCH] exp_parent locking fixes
Andrew Morton [Thu, 3 Apr 2003 00:28:42 +0000 (16:28 -0800)]
[PATCH] exp_parent locking fixes

From: Neil Brown and myself.

Don't do dput() inside read_lock().  It can sleep.

23 years ago[PATCH] umsdos fixes
Andrew Morton [Thu, 3 Apr 2003 00:28:34 +0000 (16:28 -0800)]
[PATCH] umsdos fixes

From: Andries.Brouwer@cwi.nl

Make sure structs used by umsdos ioctls do not change size when the size of
dev_t is changed.

23 years ago[PATCH] Fix devfs' partition handling
Andrew Morton [Thu, 3 Apr 2003 00:28:27 +0000 (16:28 -0800)]
[PATCH] Fix devfs' partition handling

From: Andre Landwehr <andre.landwehr@gmx.net>

with / on an IDE harddisk the disks partitions do not appear in
devfs, only the disc device. This is due to rescan_partitions
being called twice and deleting but not re-creating the entries
during the second call.

hch has acked this.

23 years ago[PATCH] add vt console scrollback ioctl
Andrew Morton [Thu, 3 Apr 2003 00:28:18 +0000 (16:28 -0800)]
[PATCH] add vt console scrollback ioctl

From: Samuel Thibault <Samuel.Thibault@ens-lyon.fr>

There is no way for a braille device driven by brltty (userland root-owned
daemon) to scrollback the virtual console, the only way is to use the pc
keyboard.  A very simple TIOCLINUX ioctl meets this need (tested).

Also add a command for bringing the last console to the top, as keyboard.c's
lastcons() does when pressing alt - down arrow.

23 years ago[PATCH] sync dirty pages in fadvise(FADV_DONTNEED)
Andrew Morton [Thu, 3 Apr 2003 00:28:11 +0000 (16:28 -0800)]
[PATCH] sync dirty pages in fadvise(FADV_DONTNEED)

This changes the fadvise(FADV_DONTNEED) operation to start async writeout of
any dirty pages in the file.

The thinking is that if the application doesn't want to use those pages in
the future, we may as well get IO underway against them so they can be freed
up on the next call to fadvise().

The POSIX spec does not go into any detail as to whether this is the right or
wrong behaviour.

This provides a nice way for applications whihc are writing streaming data
(the main users of fadvise) to keep the amount of dirty pagecache under
control without having to resort to system-wide VM tuning.

It also provides an "async fsync()".  If the application passes in a length
of zero, fadvise will start async writeout of the pages, but will not
invalidate any of the file's pagecache.

23 years ago[PATCH] Additional 3c980 device support
Andrew Morton [Thu, 3 Apr 2003 00:28:03 +0000 (16:28 -0800)]
[PATCH] Additional 3c980 device support

From: "J.A. Magallon" <jamagallon@able.es>

Adds support for a couple of 3c980 variants which are in pci.ids, but not in
the driver.

23 years ago[PATCH] aic7xxx timer deletion fix
Andrew Morton [Thu, 3 Apr 2003 00:27:56 +0000 (16:27 -0800)]
[PATCH] aic7xxx timer deletion fix

From: Zwane Mwaikambo <zwane@linuxpower.ca>

ahc_linux_free_device() needs to use del_timer_sync().  slab corruption has
been observed due to the timer handler running after the containing object
was freed.

23 years ago[PATCH] misc fixes
Andrew Morton [Thu, 3 Apr 2003 00:27:47 +0000 (16:27 -0800)]
[PATCH] misc fixes

- Fix warning in sound/pci/cs46xx/cs46xx_lib.c (Martin Bligh)

- pte_file() comment fix (Pete Zaitcev)

- _PAGE_FILE comment clarifications

- copy_to_user() check in do_proc_readlink()

23 years ago[PATCH] struct stat - support larger dev_t
Andrew Morton [Thu, 3 Apr 2003 00:27:40 +0000 (16:27 -0800)]
[PATCH] struct stat - support larger dev_t

From: Andries.Brouwer@cwi.nl

Below a patch that changes struct stat for a number of
architectures. Maintainers, please watch carefully.

Struct stat is used to transfer information from kernel
to user space on a stat() system call.
It has fields st_dev, st_rdev.

The size of these fields is in principle unrelated to
the size of a dev_t in user space or the size of a
dev_t or kdev_t in kernel space.

It is just the "capacity" of the channel.
The actual amount of useful information is the minimum
of the four sizes (kernel dev_t, kernel kdev_t,
user dev_t, width of stat st_dev, st_rdev fields).

The goal of this patch is to make sure that the stat() and stat64()
system calls transmit at least 32 and 64 bits, respectively.
This is achieved by using the padding that was present already.
We fail when no padding was present, or when the padding is on
the wrong side (after the field, while the machine is big-endian).

alpha: stat: uses unsigned int, 32 bits
arm: stat: uses unsigned short - bad.
The padding is on one side, which means that this can
be made into unsigned long only on little endian systems.
FIXED - unless __ARMEB__.
stat64: used unsigned short - FIXED, now unsigned long long.
cris: stat: used unsigned short - FIXED, now unsigned long
stat64: used unsigned short - FIXED, now unsigned long long.
i386: stat: used unsigned short - FIXED, now unsigned long
stat64: used unsigned short - FIXED, now unsigned long long.
ia64: stat: uses unsigned long, 64 bits
m68k: stat: used unsigned short - bad, but this cannot be fixed
since m68k is big-endian, and the available padding is on
the wrong side. NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
mips: stat: uses dev_t which is unsigned int, 32 bits
stat64: used unsigned long, 32 bits. NOT FIXED.
(There is padding on one side, so this can be fixed if __MIPSEL__.)
mips64: stat: uses dev_t which is unsigned int, 32 bits
parisc: stat: uses dev_t, 32 bits
stat64: uses unsigned long long, 64 bits
ppc: stat: uses dev_t which is unsigned int, 32 bits
stat64: unsigned long long, 64 bits
ppc64: stat: uses dev_t which is unsigned long, 64 bits
stat64: uses unsigned long, 64 bits
sparc: stat: uses unsigned short, no padding. NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
sparc64:stat: uses dev_t which is unsigned int, 32 bits
stat64: used unsigned short - FIXED, now unsigned long long.
s390: stat: used unsigned short, big-endian, padding on the wrong side,
NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
s390x: stat: uses unsigned long, 64 bits
sh: stat: used unsigned short, but padding maybe on wrong side.
NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
v850: stat: used __kernel_dev_t.
BUG: NEVER use __kernel types in a user space interface.
Replaced the types. FIXED - now unsigned int - 32 bits.
stat64: FIXED - now unsigned long long - 64 bits.
x86_64: stat: uses unsigned long, 64 bits

So, on most architectures we achieve the aim of 32 bits for stat,
64 bits for stat64. On all architectures we achieve at least
16 bits for stat, 32 bits for stat64.

23 years ago[PATCH] tmpfs 6/6: percentile sizing of tmpfs
Andrew Morton [Thu, 3 Apr 2003 00:27:33 +0000 (16:27 -0800)]
[PATCH] tmpfs 6/6: percentile sizing of tmpfs

From: CaT <cat@zip.com.au>

What this patch does is allow you to specify the max amount of memory tmpfs
can use as a percentage of available real ram.  This (in my eyes) is useful
so that you do not have to remember to change the setting if you want
something other then 50% and some of your ram goes.

Hugh redid the arithmetic to not overflow at 4GB; the particular order of
lines helps RH's gcc-2.96-110 not to get confused in the do_div.  2.5 can use
totalram_pages.  Update mount options in tmpfs Doc.

There's an argument that the percentage should be of ram+swap, that's what
Christoph originally intended.  But we set the default at 50% of ram only, so
I believe it's more consistent to follow that precedent.

23 years ago[PATCH] tmpfs 5/6: use cond_resched
Andrew Morton [Thu, 3 Apr 2003 00:27:26 +0000 (16:27 -0800)]
[PATCH] tmpfs 5/6: use cond_resched

From: Hugh Dickins <hugh@veritas.com>

cond_resched each time around the loop in shmem_file_write
and do_shmem_file_read, matching filemap.c.

23 years ago[PATCH] tmpfs 4/6: use mark_page_accessed
Andrew Morton [Thu, 3 Apr 2003 00:27:19 +0000 (16:27 -0800)]
[PATCH] tmpfs 4/6: use mark_page_accessed

From: Hugh Dickins <hugh@veritas.com>

tmpfs pages should be surfing the LRUs in the company of their filemap
friends: I was expecting the rules to change, but they've been stable so
long, let's sprinkle mark_page_accessed in the equivalent places here; but
(don't ask me why) SetPageReferenced in shmem_file_write.  Ooh, and
shmem_populate was missing a flush_page_to_ram.

23 years ago[PATCH] tmpfs 3/6: use generic_file_llseek
Andrew Morton [Thu, 3 Apr 2003 00:27:11 +0000 (16:27 -0800)]
[PATCH] tmpfs 3/6: use generic_file_llseek

From: Hugh Dickins <hugh@veritas.com>

default_llseek's use of BKL and not i_sem was recently exposed:
tmpfs should be using generic_file_llseek which guards with i_sem.

23 years ago[PATCH] tmpfs 2/6 remove shmem_readpage
Andrew Morton [Thu, 3 Apr 2003 00:27:05 +0000 (16:27 -0800)]
[PATCH] tmpfs 2/6 remove shmem_readpage

From: Hugh Dickins <hugh@veritas.com>

shmem_readpage was created to give tmpfs sendfile and loop ability; but
they're both using shmem_file_sendfile now, so remove shmem_readpage.

23 years ago[PATCH] tmpfs 1/6 use generic_write_checks
Andrew Morton [Thu, 3 Apr 2003 00:26:58 +0000 (16:26 -0800)]
[PATCH] tmpfs 1/6 use generic_write_checks

From: Hugh Dickins <hugh@veritas.com>

Remove the duplicated checks in shmem_file-write(), use
generic_write_checks() instead.

23 years ago[PATCH] file limit checking simplification
Andrew Morton [Thu, 3 Apr 2003 00:26:51 +0000 (16:26 -0800)]
[PATCH] file limit checking simplification

From: Hugh Dickins <hugh@veritas.com>

When handling rlimit != RLIM_INFINITY, generic_write_checks tests file
position against 0xFFFFFFFFULL, and casts it to a u32.  This code is
carried forward from 2.4.4, and the 2.4-ac tree contains an apparently
obvious fix to one part of it (should set count to 0 not to a negative).
But when you think it through, it all turns out to be bogus.

On a 32-bit architecture: limit is a 32-bit unsigned long, we've
already handled *pos < 0 and *pos >= limit, so *pos here has no way
of being > 0xFFFFFFFFULL, and thus casting it to u32 won't truncate it.
And on a 64-bit architecture: limit is a 64-bit unsigned long, but this
code is disallowing file position beyond the 32 bits; or if there's some
userspace compatibility issue, with limit having to fit into 32 bits,
the 32-bit architecture argument applies and they're still irrelevant.

So just remove the 0xFFFFFFFFULL test; and in place of the u32, cast to
typeof(limit) so it's right even if rlimits get wider.  And there's no
way we'd want to send SIGXFSZ below the limit: remove send_sig comment.

There's a similarly suspicious u32 cast a little further down, when
checking MAX_NON_LFS.  Given its definition, that does no harm on any
arch: but it's better changed to unsigned long, the type of MAX_NON_LFS.

23 years ago[PATCH] bio kmapping changes
Andrew Morton [Thu, 3 Apr 2003 00:26:43 +0000 (16:26 -0800)]
[PATCH] bio kmapping changes

RAID5 is calling copy_data() under sh->lock.  But copy_data() does kmap(),
which can sleep.

The best fix is to use kmap_atomic() in there.  It is faster than kmap() and
does not block.

The patch removes the unused bio_kmap() and replaces __bio_kmap() with
__bio_kmap_atomic().  I think it's best to withdraw the sleeping-and-slow
bio_kmap() from the kernel API before someone else tries to use it.

Also, I notice that bio_kmap_irq() was using local_save_flags().  This is a
bug - local_save_flags() does not disable interrupts.  Converted that to
local_irq_save().  These names are terribly chosen.

This patch was acked by Jens and Neil.

23 years ago[PATCH] Fix some compile warnings
Andrew Morton [Thu, 3 Apr 2003 00:26:34 +0000 (16:26 -0800)]
[PATCH] Fix some compile warnings

From: "Martin J. Bligh" <mbligh@aracnet.com>

Fix a couple of instances of "warning: suggest parentheses around assignment
used as truth value".

23 years ago[PATCH] monotonic clock source for hangcheck timer
Andrew Morton [Thu, 3 Apr 2003 00:26:28 +0000 (16:26 -0800)]
[PATCH] monotonic clock source for hangcheck timer

From: john stultz <johnstul@us.ibm.com>

This patch, written with the advice of Joel Becker, addresses a problem with
the hangcheck-timer.

The basic problem is that the hangcheck-timer code (Required for Oracle)
needs a accurate hard clock which can be used to detect OS stalls (due to
udelay() or pci bus hangs) that would cause system time to skew (its sort of
a sanity check that insures the system's notion of time is accurate).
However, currently they are using get_cycles() to fetch the cpu's TSC
register, thus this does not work on systems w/o a synced TSC.

As suggested by Andi Kleen (see thread here:
http://www.uwsg.iu.edu/hypermail/linux/kernel/0302.0/1234.html ) I've worked
with Joel and others to implement the monotonic_clock() interface.  Some of
the major considerations made when writing this patch were

o Needs to be able to return accurate time in the absence of multiple timer
  interrupts

o Needs to be abstracted out from the hardware

o Avoids impacting gettimeofday() performance

This interface returns a unsigned long long representing the number of
nanoseconds that has passed since time_init().

23 years ago[PATCH] handle bad inodes in put_inode
Andrew Morton [Thu, 3 Apr 2003 00:26:20 +0000 (16:26 -0800)]
[PATCH] handle bad inodes in put_inode

From: "J. Bruce Fields" <bfields@fieldses.org>

If the NFS daemon is presented with a filehandle for a file that has
been deleted, it does an iget() in fs/exportfs/expfs.c:export_iget() and
gets a bad inode back.  When it subsequently iput()s the inode, the
result is:

Mar 27 12:53:40 snoopy kernel: EXT2-fs error (device ide0(3,3)): ext2_free_blocks: Freeing blocks not in datazone - block = 1802201963, count = 27499
Mar 27 12:53:40 snoopy kernel: Remounting filesystem read-only

The same can happen if ext2_get_inode() returns an error - ext2_read_inode()
will return an uninitialised inode and ext2_put_inode() is not allowed to go
looking inside the bad inode.

23 years ago[PATCH] tmpfs blk_congestion_wait fix
Andrew Morton [Thu, 3 Apr 2003 00:26:13 +0000 (16:26 -0800)]
[PATCH] tmpfs blk_congestion_wait fix

From: Hugh Dickins <hugh@veritas.com>

The blk_congestion_waits in shmem_getpage are appropriate when the error is
-ENOMEM, but not when the error is -EEXIST.  So add that test in the first
instance, but omit it all in the second instance.

23 years ago[SPARC64]: Allow cpufreq drivers to be built statically.
Ben Collins [Thu, 3 Apr 2003 00:16:57 +0000 (16:16 -0800)]
[SPARC64]: Allow cpufreq drivers to be built statically.

23 years ago[IPV6]: Make /proc/net/snmp6 use %lu instead of %ld.
Randy Dunlap [Thu, 3 Apr 2003 00:15:28 +0000 (16:15 -0800)]
[IPV6]: Make /proc/net/snmp6 use %lu instead of %ld.

23 years agoMerge bk://kernel.bkbits.net/acme/net-2.5
David S. Miller [Wed, 2 Apr 2003 23:31:44 +0000 (15:31 -0800)]
Merge bk://kernel.bkbits.net/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years agoo net: CodyngStyle reformatting, no code changes
Arnaldo Carvalho de Melo [Thu, 3 Apr 2003 08:47:53 +0000 (05:47 -0300)]
o net: CodyngStyle reformatting, no code changes

23 years agoo linux/net.h: bye bye struct net_proto
Arnaldo Carvalho de Melo [Thu, 3 Apr 2003 08:08:27 +0000 (05:08 -0300)]
o linux/net.h: bye bye struct net_proto

struct net_proto is not anymore needed, as the protocols
have their init functions marked as __init, not needing
explicit calling.

23 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
David S. Miller [Wed, 2 Apr 2003 23:27:50 +0000 (15:27 -0800)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5

23 years ago[IPSEC]: Clean up decap state, minimize its size.
David S. Miller [Wed, 2 Apr 2003 23:21:59 +0000 (15:21 -0800)]
[IPSEC]: Clean up decap state, minimize its size.

23 years ago[SHAPER]: Fix time_before_eq args.
David S. Miller [Wed, 2 Apr 2003 23:19:56 +0000 (15:19 -0800)]
[SHAPER]: Fix time_before_eq args.

23 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
David S. Miller [Wed, 2 Apr 2003 22:50:21 +0000 (14:50 -0800)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5

23 years agoMerge bk://kernel.bkbits.net/acme/net-2.5
David S. Miller [Wed, 2 Apr 2003 22:45:52 +0000 (14:45 -0800)]
Merge bk://kernel.bkbits.net/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
David S. Miller [Wed, 2 Apr 2003 22:44:21 +0000 (14:44 -0800)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

23 years ago[IPSEC]: Add encap support for xfrm_user.
David S. Miller [Wed, 2 Apr 2003 22:30:48 +0000 (14:30 -0800)]
[IPSEC]: Add encap support for xfrm_user.

23 years ago[IPSEC]: Store xfrm_encap_tmpl directly in xfrm_state.
David S. Miller [Wed, 2 Apr 2003 22:18:09 +0000 (14:18 -0800)]
[IPSEC]: Store xfrm_encap_tmpl directly in xfrm_state.

23 years ago[IPSEC]: Revert xfrm_state use_time patch, it was wrong.
David S. Miller [Wed, 2 Apr 2003 21:29:30 +0000 (13:29 -0800)]
[IPSEC]: Revert xfrm_state use_time patch, it was wrong.

23 years ago[IPSEC]: Implement UDP Encapsulation framework.
Derek Atkins [Wed, 2 Apr 2003 21:21:02 +0000 (13:21 -0800)]
[IPSEC]: Implement UDP Encapsulation framework.

In particular, implement ESPinUDP encapsulation for IPsec
Nat Traversal.

23 years ago[IPSEC]: Missing xfrm_state use_time updates.
Jean-Francois Dive [Wed, 2 Apr 2003 21:04:39 +0000 (13:04 -0800)]
[IPSEC]: Missing xfrm_state use_time updates.

23 years ago[SPARC]: sbus_char_aurora tty_driver add .owner field remove MOD_INC_DEC_USE_COUNT.
Hanna V. Linder [Wed, 2 Apr 2003 20:52:54 +0000 (12:52 -0800)]
[SPARC]: sbus_char_aurora tty_driver add .owner field remove MOD_INC_DEC_USE_COUNT.

23 years ago[TRIVIAL]: Add missing module license for ipfwadm_core.c
Geoffrey Lee [Wed, 2 Apr 2003 20:50:43 +0000 (12:50 -0800)]
[TRIVIAL]: Add missing module license for ipfwadm_core.c

23 years ago[IPV6]: Convert /proc/net/{sockstat6,snmp6} to seq_file.
Randy Dunlap [Wed, 2 Apr 2003 20:49:05 +0000 (12:49 -0800)]
[IPV6]: Convert /proc/net/{sockstat6,snmp6} to seq_file.

23 years ago[NET]: More synchronize_net call sites.
Stephen Hemminger [Wed, 2 Apr 2003 20:47:17 +0000 (12:47 -0800)]
[NET]: More synchronize_net call sites.

23 years ago[NET]: Add synchronize_net.
Stephen Hemminger [Wed, 2 Apr 2003 20:46:09 +0000 (12:46 -0800)]
[NET]: Add synchronize_net.

Currently it takes then releases BR_NETPROTO_LOCK as a writer.
Later it will be converted to RCUs synchronize_kernel().

All call sites have been verified to be sleep friendly.

23 years ago[IPV4]: Fix /proc/net/route missing the default route.
Daniel Ritz [Wed, 2 Apr 2003 20:42:52 +0000 (12:42 -0800)]
[IPV4]: Fix /proc/net/route missing the default route.

23 years agoMerge bk://kernel.bkbits.net/acme/net-2.5
David S. Miller [Wed, 2 Apr 2003 20:41:14 +0000 (12:41 -0800)]
Merge bk://kernel.bkbits.net/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years ago[ATM]: Fix IPHASE build with debugging enabled.
Chas Williams [Wed, 2 Apr 2003 20:39:17 +0000 (12:39 -0800)]
[ATM]: Fix IPHASE build with debugging enabled.

23 years ago[IPSEC]: Use of "sizeof" for header sizes, part II
Hideaki Yoshifuji [Wed, 2 Apr 2003 20:25:13 +0000 (12:25 -0800)]
[IPSEC]: Use of "sizeof" for header sizes, part II

23 years agoo linux/net.h: CodingStyle changes and kerneldoc style structs documentation
Arnaldo Carvalho de Melo [Wed, 2 Apr 2003 17:39:44 +0000 (14:39 -0300)]
o linux/net.h: CodingStyle changes and kerneldoc style structs documentation

23 years agoMerge bk://kernel.bkbits.net/gregkh/linux/i2c-2.5
Linus Torvalds [Wed, 2 Apr 2003 09:56:51 +0000 (01:56 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoHand merge
Kai Germaschewski [Wed, 2 Apr 2003 11:39:31 +0000 (05:39 -0600)]
Hand merge

23 years agokbuild: Fix dependencies for generated .mod.o files
Kai Germaschewski [Wed, 2 Apr 2003 08:12:51 +0000 (02:12 -0600)]
kbuild: Fix dependencies for generated .mod.o files

For some reason which I cannot remember, we didn't use the automatic
dependency generation for the generated .mod.[co] files. However, we do
of course need dependency information for those, too, they need to be updated
when e.g. the kernel version number changes.

23 years agomodules: Fix exporting symbols from modules
Kai Germaschewski [Wed, 2 Apr 2003 08:10:23 +0000 (02:10 -0600)]
modules: Fix exporting symbols from modules

This patch fixes two issues:
o The CONFIG_MODVERSIONING=y case broke at compile time since some
  functions were not updated with the latest module changes
o Exporting symbols from modules stopped working due to confusion of
  mod->num_syms and mod->num_ksyms. Rename mod->num_ksyms to mod->num_syms,
  which is more logical since the associated array is called ->syms, and
  for the kallsyms member use "num_symtab", since the associated array is
  ->symtab.

23 years agoUSB: Add missing #include <asm/uaccess.h>
Kai Germaschewski [Wed, 2 Apr 2003 08:06:39 +0000 (02:06 -0600)]
USB: Add missing #include <asm/uaccess.h>

23 years agoi2c: remove old proc documentation and add sysfs file documentation
Greg Kroah-Hartman [Wed, 2 Apr 2003 07:39:28 +0000 (23:39 -0800)]
i2c: remove old proc documentation and add sysfs file documentation

23 years agoi2c: fix up broken drivers/i2c/busses build due to I2C_PROC now being gone.
Greg Kroah-Hartman [Wed, 2 Apr 2003 07:36:11 +0000 (23:36 -0800)]
i2c: fix up broken drivers/i2c/busses build due to I2C_PROC now being gone.

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Wed, 2 Apr 2003 06:43:26 +0000 (22:43 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Wed, 2 Apr 2003 06:24:54 +0000 (22:24 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Wed, 2 Apr 2003 06:21:30 +0000 (22:21 -0800)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/i2c-2.5

23 years agoi2c: clean up previous w83781d patch due to changes I made to i2c core and build.
Greg Kroah-Hartman [Wed, 2 Apr 2003 06:18:09 +0000 (22:18 -0800)]
i2c: clean up previous w83781d patch due to changes I made to i2c core and build.

23 years ago[PATCH] i2c: w83781d i2c driver updated for 2.5.66-bk4 (with sysfs support, empty...
Martin Schlemmer [Wed, 2 Apr 2003 06:07:40 +0000 (22:07 -0800)]
[PATCH] i2c: w83781d i2c driver updated for 2.5.66-bk4 (with sysfs support, empty tree)

This should have a working w83781d driver updated for 2.5.66-bk4.
Currently sysfs support is working, and are according to the spec
(sensors-sysfs) in the 'lm sensors sysfs file structure' thread.
Thus I used 'temp_input[1-3]', as there was not final decision
on having them temp_input[0-2] as well, for example.

23 years agoi2c: remove all proc code from the i2c core, as it's no longer needed.
Greg Kroah-Hartman [Wed, 2 Apr 2003 05:54:45 +0000 (21:54 -0800)]
i2c: remove all proc code from the i2c core, as it's no longer needed.

23 years agoi2c: move i2c-proc to i2c-sensor and clean up all usages of it.
Greg Kroah-Hartman [Wed, 2 Apr 2003 04:01:21 +0000 (20:01 -0800)]
i2c: move i2c-proc to i2c-sensor and clean up all usages of it.

23 years agoi2c: remove unused paramater in found_proc callback function.
Greg Kroah-Hartman [Wed, 2 Apr 2003 03:48:13 +0000 (19:48 -0800)]
i2c: remove unused paramater in found_proc callback function.

(the users of this function have already been changed in previous patches)

23 years agoi2c: remove proc and sysctl code from i2c-proc as it is no longer used.
Greg Kroah-Hartman [Wed, 2 Apr 2003 03:45:21 +0000 (19:45 -0800)]
i2c: remove proc and sysctl code from i2c-proc as it is no longer used.

23 years agoi2c: remove sysctl and proc functions from via686a.c driver
Greg Kroah-Hartman [Wed, 2 Apr 2003 03:34:13 +0000 (19:34 -0800)]
i2c: remove sysctl and proc functions from via686a.c driver

This still needs to be converted to use sysfs files, but due to
lack of hardware, I can not do this.  This change is necessary as
the sysctl and proc interface is about to go away.

23 years agoi2c: convert adm1021 chip driver to use sysfs files.
Greg Kroah-Hartman [Wed, 2 Apr 2003 03:32:24 +0000 (19:32 -0800)]
i2c: convert adm1021 chip driver to use sysfs files.

Note, some data is not converted and will not be displayed.
Someone with this hardware is going to have to finish the rest of
this conversion.

23 years agoi2c: convert lm75 chip driver to use sysfs files.
Greg Kroah-Hartman [Wed, 2 Apr 2003 03:29:55 +0000 (19:29 -0800)]
i2c: convert lm75 chip driver to use sysfs files.

23 years agoFix naming confusion: number of symbol kallsyms is "num_kallsyms",
Linus Torvalds [Wed, 2 Apr 2003 02:52:17 +0000 (18:52 -0800)]
Fix naming confusion: number of symbol kallsyms is "num_kallsyms",
while number of symbols is "num_syms". It used to be "num_syms" and
"num_ksyms" respectively (ie the "k" was the wrong way around).

The previous naming was not just confusing, it had caused one actual
bug (ie the normal symbol code had used "num_syms", which was wrong
in the old confusing naming scheme).

23 years ago[PATCH] Convert APIC to driver model
John Levon [Wed, 2 Apr 2003 02:30:35 +0000 (18:30 -0800)]
[PATCH] Convert APIC to driver model

This is Mikael's version of Pavel's patch, fixed to let CONFIG_PM=n
compile. It works for me on my 2-way using oprofile.

23 years ago[IPSEC]: xfrm_{state,user}.c need asm/uaccess.h
David S. Miller [Tue, 1 Apr 2003 15:50:33 +0000 (07:50 -0800)]
[IPSEC]: xfrm_{state,user}.c need asm/uaccess.h

23 years agoAdd missing <asm/uaccess.h> header includes
Linus Torvalds [Tue, 1 Apr 2003 15:09:09 +0000 (07:09 -0800)]
Add missing <asm/uaccess.h> header includes

23 years ago[PATCH] more compat types
Stephen Rothwell [Tue, 1 Apr 2003 14:00:39 +0000 (06:00 -0800)]
[PATCH] more compat types

23 years ago[PATCH] fix ec_read using wrong #define's in sonypi driver.
Stelian Pop [Tue, 1 Apr 2003 13:09:06 +0000 (05:09 -0800)]
[PATCH] fix ec_read using wrong #define's in sonypi driver.

Damn, a copy and paste error and nobody noticed until now.

From Daniel K.

23 years ago[PATCH] module load notification
John Levon [Tue, 1 Apr 2003 13:06:51 +0000 (05:06 -0800)]
[PATCH] module load notification

This implements a simple notifier so oprofile can notice removed and
added modules properly

23 years ago[PATCH] fix up newer x86 cpuinfo flags.
Dave Jones [Tue, 1 Apr 2003 13:03:30 +0000 (05:03 -0800)]
[PATCH] fix up newer x86 cpuinfo flags.

According to Intel document 24161823.pdf[*] page 18, 'tm2' is misdefined.
Its bit 7 not, bit 8. Also add the missing 'EST' (Enhanced Speedstep Technology)
bit, and use the correct Intel terminology for the context ID bit.

[*] http://www.intel.com/design/xeon/applnots/241618.htm

23 years ago[PATCH] Add new cache descriptors, as found on P4-M (Centrino)
Dave Jones [Tue, 1 Apr 2003 13:03:17 +0000 (05:03 -0800)]
[PATCH] Add new cache descriptors, as found on P4-M (Centrino)

23 years ago[PATCH] fix for drivers/video/logo/Makefile
Marijn Kruisselbrink [Tue, 1 Apr 2003 13:03:06 +0000 (05:03 -0800)]
[PATCH] fix for drivers/video/logo/Makefile

The fb-logo *.c files are not deleted on a make clean; this patch fixes
this.

23 years ago[PATCH] remove kdevname() before someone starts using it again
Christoph Hellwig [Tue, 1 Apr 2003 13:02:55 +0000 (05:02 -0800)]
[PATCH] remove kdevname() before someone starts using it again

23 years agoMerge http://linux-acpi.bkbits.net/linux-acpi
Linus Torvalds [Tue, 1 Apr 2003 13:01:48 +0000 (05:01 -0800)]
Merge http://linux-acpi.bkbits.net/linux-acpi
into home.transmeta.com:/home/torvalds/v2.5/linux