]> git.hungrycats.org Git - linux/log
linux
22 years ago[ARM] Move DMA mask-based bounce detection to dmabounce code.
Russell King [Wed, 25 Aug 2004 15:29:22 +0000 (16:29 +0100)]
[ARM] Move DMA mask-based bounce detection to dmabounce code.

22 years ago[ARM] Correct dma_to_virt()/virt_to_dma() return types.
Russell King [Wed, 25 Aug 2004 14:59:55 +0000 (15:59 +0100)]
[ARM] Correct dma_to_virt()/virt_to_dma() return types.

22 years ago[PATCH] ppc64: better handling of H_ENTER failures
Paul Mackerras [Tue, 24 Aug 2004 16:39:21 +0000 (09:39 -0700)]
[PATCH] ppc64: better handling of H_ENTER failures

This changes the hash insertion routines to return an error instead of
calling panic() when HV refuses to insert a HPTE (the hypervisor call to
set up a hashtable PTE is H_ENTER).

The error is now propagated upstream, and either bad_page_fault() is
called (kernel mode) or a SIGBUS signal is forced (user mode).  Some
other panic() cases are also turned into BUG_ON.

Overall, this should provide us with better debugging data if the
problem happens, and avoids errors from userland mapping /dev/mem and
trying to use forbidden IOs (XFree ?) to bring the whole kernel down.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoUse "insert_resource()" to add the PCI resources to the
Linus Torvalds [Tue, 24 Aug 2004 16:35:36 +0000 (09:35 -0700)]
Use "insert_resource()" to add the PCI resources to the
resource tree.

In contrast to the old "request_resource()", this allows
us to add a resource even when firmware (ACPI) has marked
part of it as being in use.

22 years ago[PATCH] via-rhine: small fixes
Andrew Morton [Tue, 24 Aug 2004 19:35:02 +0000 (15:35 -0400)]
[PATCH] via-rhine: small fixes

From: Roger Luethi <rl@hellgate.ch>

- remove Rhine model names (per Jeff's request)
- remove redundant calls to clear MII cmd
- fill some rhine_private fields earlier

Signed-off-by: Roger Luethi <rl@hellgate.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] via-rhine: de-isolate PHY
Andrew Morton [Tue, 24 Aug 2004 19:34:52 +0000 (15:34 -0400)]
[PATCH] via-rhine: de-isolate PHY

From: Roger Luethi <rl@hellgate.ch>

PHYs may come up isolated.  Make sure we can send data to them.  This code
section needs a clean-up, but I prefer to merge this fix in isolation.

Report and suggested fix by Tam, Ming Dat (Tommy).

Signed-off-by: Roger Luethi <rl@hellgate.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] via-rhine: suspend/resume support
Andrew Morton [Tue, 24 Aug 2004 19:34:42 +0000 (15:34 -0400)]
[PATCH] via-rhine: suspend/resume support

From: Roger Luethi <rl@hellgate.ch>

From: Arkadiusz Miskiewicz

Signed-off-by: Arkadiusz Miskiewicz <arekm@pld-linux.org>
Signed-off-by: Roger Luethi <rl@hellgate.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] netdrv gianfar: fix printk output
Andrew Morton [Tue, 24 Aug 2004 19:34:32 +0000 (15:34 -0400)]
[PATCH] netdrv gianfar: fix printk output

From: Kumar Gala <galak@somerset.sps.mot.com>

Fix usage of printk on the output of mac address.

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] Typo in drivers/net/dl2k.h
Andrew Morton [Tue, 24 Aug 2004 19:34:20 +0000 (15:34 -0400)]
[PATCH] Typo in drivers/net/dl2k.h

From: Alexander Shatohin <ash@tsi.lv>

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] 8139too: be sure to progress during rtl8139_rx()
Andrew Morton [Tue, 24 Aug 2004 19:34:10 +0000 (15:34 -0400)]
[PATCH] 8139too: be sure to progress during rtl8139_rx()

From: Francois Romieu <romieu@fr.zoreil.com>

If the Rx buffer gets corrupted or the FIFO hangs in new interesting ways,
this code prevents the driver from looping in ksoftirqd context without
making any progress.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] 8139too: Rx fifo/overflow recovery
Andrew Morton [Tue, 24 Aug 2004 19:34:00 +0000 (15:34 -0400)]
[PATCH] 8139too: Rx fifo/overflow recovery

From: Francois Romieu <romieu@fr.zoreil.com>

This patch allows to update the interrupt status register after an Rx
overflow or a Rx fifo error even when the Rx buffer contains no packet.
The update must be kept in the packet processing loop to prevent an Rx
error storm.  As an interesting behavior, the status of the interrupt
status register must not be read early.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] via-velocity: wrong module name in Kconfig documentation
Andrew Morton [Tue, 24 Aug 2004 19:33:49 +0000 (15:33 -0400)]
[PATCH] via-velocity: wrong module name in Kconfig documentation

From: Francois Romieu <romieu@fr.zoreil.com>

Copy/paste abuse.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in funct...
Andrew Morton [Tue, 24 Aug 2004 19:33:39 +0000 (15:33 -0400)]
[PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in function 'log2'

From: Jesper Juhl <juhl-lkml@dif.dk>

To silence the warning in $subject, rename log2 to cycx_log2 in this file
to remove the clash, so there's no doubt that this file uses it's own
defined log2 function.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] fix net/hamradio/dmascc with gcc 3.4
Andrew Morton [Tue, 24 Aug 2004 19:26:50 +0000 (15:26 -0400)]
[PATCH] fix net/hamradio/dmascc with gcc 3.4

From: Adrian Bunk <bunk@fs.tum.de>

drivers/net/hamradio/dmascc.c: In function `scc_isr':
drivers/net/hamradio/dmascc.c:250: sorry, unimplemented: inlining
failed in call to 'z8530_isr': function body not available
drivers/net/hamradio/dmascc.c:969: sorry, unimplemented: called from
here
drivers/net/hamradio/dmascc.c:250: sorry, unimplemented: inlining
failed in call to 'z8530_isr': function body not available
drivers/net/hamradio/dmascc.c:978: sorry, unimplemented: called from
here

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] sk98lin/skge.c doesn't compile with PROC_FS=n
Andrew Morton [Tue, 24 Aug 2004 19:26:40 +0000 (15:26 -0400)]
[PATCH] sk98lin/skge.c doesn't compile with PROC_FS=n

From: Adrian Bunk <bunk@fs.tum.de>

drivers/net/sk98lin/skge.c: In function `skge_remove_one':
drivers/net/sk98lin/skge.c:5116: warning: implicit declaration of function `remove_proc_entry'
drivers/net/sk98lin/skge.c:5116: `pSkRootDir' undeclared (first use in this function)
drivers/net/sk98lin/skge.c:5116: (Each undeclared identifier is reported only once
drivers/net/sk98lin/skge.c:5116: for each function it appears in.)
drivers/net/sk98lin/skge.c: In function `skge_init':
drivers/net/sk98lin/skge.c:5188: `SK_Root_Dir_entry' undeclared (first use in this function)

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] via-velocity: more inetaddr_notifier fix
Andrew Morton [Tue, 24 Aug 2004 19:26:28 +0000 (15:26 -0400)]
[PATCH] via-velocity: more inetaddr_notifier fix

From: Francois Romieu <romieu@fr.zoreil.com>

There is no guarantee that the event which gets passed is associated to a
via-velocity device, thus preventing to dereference dev->priv as if it
always was a struct velocity_info *.  The via-velocity devices are kept in
a module private list for comparison.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] ixgb_main.c: fix inline compile errors
Andrew Morton [Tue, 24 Aug 2004 19:26:18 +0000 (15:26 -0400)]
[PATCH] ixgb_main.c: fix inline compile errors

From: Adrian Bunk <bunk@fs.tum.de>

drivers/net/ixgb/ixgb_main.c: In function `ixgb_up':
drivers/net/ixgb/ixgb_main.c:86: sorry, unimplemented: inlining failed
in call to 'ixgb_irq_enable': function body not available
drivers/net/ixgb/ixgb_main.c:234: sorry, unimplemented: called from here

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] net/tulip/dmfe.c: gcc-3.5 fixes
Andrew Morton [Tue, 24 Aug 2004 19:26:07 +0000 (15:26 -0400)]
[PATCH] net/tulip/dmfe.c: gcc-3.5 fixes

From: Adrian Bunk <bunk@fs.tum.de>

  CC      drivers/net/tulip/dmfe.o
drivers/net/tulip/dmfe.c: In function `dmfe_rx_packet':
drivers/net/tulip/dmfe.c:323: sorry, unimplemented: inlining failed in
call to 'cal_CRC': function body not available
drivers/net/tulip/dmfe.c:936: sorry, unimplemented: called from here
make[3]: *** [drivers/net/tulip/dmfe.o] Error 1

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] net/rrunner.c: gcc-3.5 fixes
Andrew Morton [Tue, 24 Aug 2004 19:25:57 +0000 (15:25 -0400)]
[PATCH] net/rrunner.c: gcc-3.5 fixes

From: Adrian Bunk <bunk@fs.tum.de>

  CC      drivers/net/rrunner.o
drivers/net/rrunner.c: In function `rr_timer':
drivers/net/rrunner.h:846: sorry, unimplemented: inlining failed in call
to 'rr_raz_tx': function body not available
drivers/net/rrunner.c:1155: sorry, unimplemented: called from here
drivers/net/rrunner.h:847: sorry, unimplemented: inlining failed in call
to 'rr_raz_rx': function body not available
drivers/net/rrunner.c:1156: sorry, unimplemented: called from here
make[2]: *** [drivers/net/rrunner.o] Error 1

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] net/hamachi.c: gcc-3.5 build fixes
Andrew Morton [Tue, 24 Aug 2004 19:25:47 +0000 (15:25 -0400)]
[PATCH] net/hamachi.c: gcc-3.5 build fixes

From: Adrian Bunk <bunk@fs.tum.de>

  CC      drivers/net/hamachi.o
drivers/net/hamachi.c: In function `hamachi_interrupt':
drivers/net/hamachi.c:562: sorry, unimplemented: inlining failed in call
to 'hamachi_rx': function body not available
drivers/net/hamachi.c:1402: sorry, unimplemented: called from here
make[2]: *** [drivers/net/hamachi.o] Error 1

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] net/smc9194.c: fix gcc-3.5 inline compile errors
Andrew Morton [Tue, 24 Aug 2004 19:25:36 +0000 (15:25 -0400)]
[PATCH] net/smc9194.c: fix gcc-3.5 inline compile errors

From: Adrian Bunk <bunk@fs.tum.de>

  CC      drivers/net/smc9194.o
drivers/net/smc9194.c: In function `smc_interrupt':
drivers/net/smc9194.c:278: sorry, unimplemented: inlining failed in call
to 'smc_rcv': function body not available
drivers/net/smc9194.c:1254: sorry, unimplemented: called from here
drivers/net/smc9194.c:283: sorry, unimplemented: inlining failed in call
to 'smc_tx': function body not available
drivers/net/smc9194.c:1258: sorry, unimplemented: called from here
make[2]: *** [drivers/net/smc9194.o] Error 1

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] e1000 inlining fix
Andrew Morton [Tue, 24 Aug 2004 19:25:26 +0000 (15:25 -0400)]
[PATCH] e1000 inlining fix

From: Nick Orlov <bugfixer@list.ru>

e1000 fixes for gcc-3.4.1

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] e1000 build fix
Andrew Morton [Tue, 24 Aug 2004 19:25:15 +0000 (15:25 -0400)]
[PATCH] e1000 build fix

drivers/net/e1000/e1000_main.c: In function `e1000_up':
drivers/net/e1000/e1000_main.c:136: sorry, unimplemented: inlining failed
in call to 'e1000_irq_enable': function body not available
drivers/net/e1000/e1000_main.c:274: sorry, unimplemented: called from here

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] sk98lin procfs fix
Andrew Morton [Tue, 24 Aug 2004 19:25:05 +0000 (15:25 -0400)]
[PATCH] sk98lin procfs fix

From: Christoph Hellwig <hch@infradead.org>

sk98line tries to register a procfile with the interfacename of the struct
net_device.  The patch below (ontop of the previous one) makes it work
unless you change the interface name manually, but as Linux explicitly
allows that the interface is fundamentally broken and probably should just
go away.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] R8169_NAPI help text
Andrew Morton [Tue, 24 Aug 2004 19:24:55 +0000 (15:24 -0400)]
[PATCH] R8169_NAPI help text

From: Adrian Bunk <bunk@fs.tum.de>

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years agoMerge bk://linux-sam.bkbits.net/kbuild
Linus Torvalds [Tue, 24 Aug 2004 12:11:17 +0000 (05:11 -0700)]
Merge bk://linux-sam.bkbits.net/kbuild
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agokbuild: fix cc-version
Sam Ravnborg [Wed, 25 Aug 2004 00:36:35 +0000 (02:36 +0200)]
kbuild: fix cc-version

cc-version needs to use $(shell to get the gcc version.
Before if gave the following error when building the kernel:

/bin/sh: line 1: [: too many arguments

And all checks for gcc version were broken.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
22 years agoMerge mars.ravnborg.org:/home/sam/bk/linux-2.6
Sam Ravnborg [Wed, 25 Aug 2004 00:24:31 +0000 (02:24 +0200)]
Merge mars.ravnborg.org:/home/sam/bk/linux-2.6
into mars.ravnborg.org:/home/sam/bk/kbuild

22 years agoMerge mars.ravnborg.org:/home/sam/bk/linux-2.6
Sam Ravnborg [Tue, 24 Aug 2004 23:23:46 +0000 (01:23 +0200)]
Merge mars.ravnborg.org:/home/sam/bk/linux-2.6
into mars.ravnborg.org:/home/sam/bk/kbuild

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 24 Aug 2004 05:43:49 +0000 (22:43 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Tue, 24 Aug 2004 05:40:58 +0000 (22:40 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] GPCMD_SEND_CUE_SHEET missing in scsi_ioctl
Jens Axboe [Tue, 24 Aug 2004 05:33:27 +0000 (22:33 -0700)]
[PATCH] GPCMD_SEND_CUE_SHEET missing in scsi_ioctl

Forgot one command, GPCMD_SEND_CUE_SHEET is also ok for write open.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] /dev/ptmx open() fixes
Alexander Viro [Tue, 24 Aug 2004 05:29:18 +0000 (22:29 -0700)]
[PATCH] /dev/ptmx open() fixes

If tty_open() fails for a normal serial device, we end up doing cleanups
that should only happen for failed open of /dev/ptmx.  The results are
not pretty - devpts et.al.  end up very confused.  That's what gave
problems with ptmx.

This splits ptmx file_operations from the normal case and cleans up both
tty_open() and (new) ptmx_open().  Survived serious beating.

22 years ago[PATCH] Missing free_area_init_node() conversions
William Lee Irwin III [Tue, 24 Aug 2004 05:29:06 +0000 (22:29 -0700)]
[PATCH] Missing free_area_init_node() conversions

Update architectures for the free_area_init_node() API change.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Undo broken FH conversion that broke nfsroot compile
Trond Myklebust [Tue, 24 Aug 2004 05:28:55 +0000 (22:28 -0700)]
[PATCH] Undo broken FH conversion that broke nfsroot compile

That conversion to nfs_fh_copy() is bogus since we're not copying into
an nfs_fh anyway. Just revert it.

22 years ago[PATCH] Alex DeVries has moved
Adrian Bunk [Tue, 24 Aug 2004 04:46:22 +0000 (21:46 -0700)]
[PATCH] Alex DeVries has moved

The patch below replaces all occurences of two bouncing email addresses of
Alex deVries in the kernel with his current address.

It's already ACK'ed by Alex deVries.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] describe Intel cache descriptors.
Dave Jones [Tue, 24 Aug 2004 04:46:09 +0000 (21:46 -0700)]
[PATCH] describe Intel cache descriptors.

Describe what the Intel cache descriptors actually mean in comments.  Taken
from 24151827.pdf.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix fs/locks.c init order
Arjan van de Ven [Tue, 24 Aug 2004 04:45:58 +0000 (21:45 -0700)]
[PATCH] Fix fs/locks.c init order

The patch below fixes an interesting oddity we're seeing with fedora core
development (where we recently started using udev heavily); basically right
now filelock_init() is a module_init(), eg runs late.  However that breaks
down because there are earlier /sbin/hotplug callouts, which with udev, do
locking operations.  When that happens the kernel oopses because the slabs
for file locks aren't initialized yet.

Solution: initialize this way early.  It's only a kmem_cache_create after
all, so can happen early.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove obsolete zero-paged in Documentation/sysctl/kernel.txt
Olaf Hering [Tue, 24 Aug 2004 04:45:48 +0000 (21:45 -0700)]
[PATCH] remove obsolete zero-paged in Documentation/sysctl/kernel.txt

This entry was removed during 2.5 development.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove obsolete htab-reclaim in Documentation/sysctl/kernel.txt
Olaf Hering [Tue, 24 Aug 2004 04:45:37 +0000 (21:45 -0700)]
[PATCH] remove obsolete htab-reclaim in Documentation/sysctl/kernel.txt

This entry is long gone, even 2.4 doesnt have it anymore.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] inode time update funnies in ncpfs
Christoph Hellwig [Tue, 24 Aug 2004 04:45:25 +0000 (21:45 -0700)]
[PATCH] inode time update funnies in ncpfs

ncfpfs seems to update inode times by hand everywhere instead of using
the proper helpers.  This means:

 - the atime updates in mmap() and read() seems to miss various checks
   upodate_atime or one of the wrappers does.  Also it doesn't mark the
   inode dirty.
 - in write() you update mtime and _a_time instead of ctime as expected,
   also the usual checks and optimizations are missing.

In addition the fops contain some bogus checks like for a refular file (but
the fops are only used of ISREG files) and inode->i_sb although that is
guranteed to be non-zero.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] show Active/Inactive on per-node meminfo
Akinobu Mita [Tue, 24 Aug 2004 04:45:14 +0000 (21:45 -0700)]
[PATCH] show Active/Inactive on per-node meminfo

  The patch below enable to display the size of Active/Inactive pages on
  per-node meminfo (/sys/devices/system/node/node%d/meminfo) like
  /proc/meminfo.

  By a little change to procps, "vmstat -a" can show these statistics about
  particular node.

From: mita akinobu <amgta@yacht.ocn.ne.jp>

  get_zone_counts() is used by max_sane_readahead(), and
  max_sane_readahead() is often called in filemap_nopage().

Signed-off-by: Akinobu Mita <amgta@yacht.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix bad URL in BSD acct help entry
Tim Schmielau [Tue, 24 Aug 2004 04:45:02 +0000 (21:45 -0700)]
[PATCH] Fix bad URL in BSD acct help entry

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] /dev/random: Remove RNDGETPOOL ioctl
Theodore Y. Ts'o [Tue, 24 Aug 2004 04:44:50 +0000 (21:44 -0700)]
[PATCH] /dev/random: Remove RNDGETPOOL ioctl

Recently, someone has kvetched that RNDGETPOOL is a "security
vulnerability".  Never mind that it is superuser only, and with superuser
privs you could load a nasty kernel module, or read the entropy pool out of
/dev/mem directly, but they are nevertheless still spreading FUD.

In any case, no one is using it (it was there for debugging purposes only),
so we can remove it as dead code.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] /dev/random: Use separate entropy store for /dev/urandom
Theodore Y. Ts'o [Tue, 24 Aug 2004 04:44:39 +0000 (21:44 -0700)]
[PATCH] /dev/random: Use separate entropy store for /dev/urandom

This patch adds a separate pool for use with /dev/urandom.  This prevents a
/dev/urandom read from being able to completely drain the entropy in the
/dev/random pool, and also makes it much more difficult for an attacker to
carry out a state extension attack.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] /dev/random: Add pool name to entropy store
Theodore Y. Ts'o [Tue, 24 Aug 2004 04:44:27 +0000 (21:44 -0700)]
[PATCH] /dev/random: Add pool name to entropy store

This adds a pool name to the entropy_store data structure, which simplifies
the debugging code, and makes the code more generic for adding additional
entropy pools.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dev/random: Fix latency in rekeying sequence number
Theodore Y. Ts'o [Tue, 24 Aug 2004 04:44:18 +0000 (21:44 -0700)]
[PATCH] dev/random: Fix latency in rekeying sequence number

Based on reports from Ingo's Latency Tracer that the TCP sequence number
rekey code is causing latency problems, I've moved the sequence number
rekey to be done out of a workqueue.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] file_ra_state_init speedup
Andrew Morton [Tue, 24 Aug 2004 04:44:06 +0000 (21:44 -0700)]
[PATCH] file_ra_state_init speedup

Marcelo points out that this function's main caller already memsets the
structure, so avoid doing it again.

Also, an earlier knfsd patch withdrew file_ra_state_init()'s other caller, so
unexport this function.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Firmware Loader is orphan
Ramón Rey Vicente [Tue, 24 Aug 2004 04:43:55 +0000 (21:43 -0700)]
[PATCH] Firmware Loader is orphan

The author and maintainer of the firmware loader died in May.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ad1816 sound driver web page and email address
Thorsten Knabe [Tue, 24 Aug 2004 04:43:44 +0000 (21:43 -0700)]
[PATCH] ad1816 sound driver web page and email address

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ext3 documentation
Diego Calleja García [Tue, 24 Aug 2004 04:43:32 +0000 (21:43 -0700)]
[PATCH] ext3 documentation

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove read-only/immutable checks from fat_truncate
Hirofumi Ogawa [Tue, 24 Aug 2004 04:43:21 +0000 (21:43 -0700)]
[PATCH] remove read-only/immutable checks from fat_truncate

From: Christoph Hellwig <hch@lst.de>

There's two callers:

 - the truncate path via notify_change, ->setattr, vmtruncate.  We
   already check for permissions here at the upper level
 - fat_delete_inode.  This one looks bogus to me - even if we delete
   an read-only or immutable inode we want to free the space allocated
   by it, else you leak disk blocks.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Update ACI MIXER DRIVER webpage
Ramón Rey Vicente [Tue, 24 Aug 2004 04:43:09 +0000 (21:43 -0700)]
[PATCH] Update ACI MIXER DRIVER webpage

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] /proc/PID/cmdline truncates arguments early
Olaf Kirch [Tue, 24 Aug 2004 04:42:57 +0000 (21:42 -0700)]
[PATCH] /proc/PID/cmdline truncates arguments early

We received a bug report that /proc/PID/cmdline only shows argv[0] if the
total length of all arguments exceeds PAGE_SIZE.  The problem is that
proc_pid_cmdline checks for the presence of a NUL byte at the end of the
args list, and assumes that the application did a setproctitle if there's
any other character.

OTOH proc_pid_cmdline will read just the first PAGE_SIZE worth of arguments
at most, and if you have more arguments, it's quite likely that there won't
be a NUL byte at offset PAGE_SIZE-1.

The attached patch fixes this.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] i386-unbusy-tss cleanup
Zachary Amsden [Tue, 24 Aug 2004 04:42:46 +0000 (21:42 -0700)]
[PATCH] i386-unbusy-tss cleanup

The TSS no longer needs to be unbusied before loading the task register, since
the set_tss_desc macros set the system gate type to Available IA-32 TSS.  This
obscure, uncommented legacy code can now be removed for better readability and
saves 20 bytes of code space.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix bio_uncopy_user() mem leak
Kurt Garloff [Tue, 24 Aug 2004 04:42:34 +0000 (21:42 -0700)]
[PATCH] fix bio_uncopy_user() mem leak

  When using bounce buffers for SG_IO commands with unaligned buffers in
  blk_rq_map_user(), we should free the pages from blk_rq_unmap_user() which
  calls bio_uncopy_user() for the non-BIO_USER_MAPPED case.  That function
  failed to free the pages for write requests.

  So we leaked pages and you machine would go OOM.  Rebooting helped ;-)

  This bug was triggered by writing audio CDs (but not on data CDs), as the
  audio frames are not aligned well (2352 bytes), so the user pages don't just
  get mapped.

  Bug was reported by Mathias Homan and debugged by Chris Mason + me.  (Jens
  is away.)

From: Chris Mason <mason@suse.com>

  Fix the leak for real

Signed-off-by: Kurt Garloff <garloff@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: zfcp host adapter
Martin Schwidefsky [Tue, 24 Aug 2004 04:42:22 +0000 (21:42 -0700)]
[PATCH] s390: zfcp host adapter

From: Heiko Carstens <heiko.carstens@de.ibm.com>
From: Andreas Herrmann <aherrman@de.ibm.com>
From: Maxim Shchetynin <maxim@de.ibm.com>

zfcp host adapter changes:
 - Use predefined macro to create in_recovery sysfs attributes.
 - Add function to check CT_IU response.
 - Fix handling of rejected ELS commands.
 - Change return value of zfcp_fsf_req_sbal_get to -ERESTARTSYS in some cases.
 - Return proper error code if control file upload/download failed.
 - Remove dead code.
 - Avoid sparse warnings.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: core changes
Martin Schwidefsky [Tue, 24 Aug 2004 04:42:10 +0000 (21:42 -0700)]
[PATCH] s390: core changes

From: Jan Glauber <jan.glauber@de.ibm.com>
From: Martin Schwidefsky <schwidefsky@de.ibm.com>

s390 core changes:
 - Use copy_siginfo_from_user32 instead of copy_from_user to get the
   siginfo structure in sys32_rt_sigqueueinfo.
 - Remove prototype for non-existant stop_timers function.
 - Regenerate default configuration.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix permissions on the `tainted' sysctl
Rusty Russell [Tue, 24 Aug 2004 04:41:58 +0000 (21:41 -0700)]
[PATCH] fix permissions on the `tainted' sysctl

From: Arjan van de Ven <arjanv@redhat.com>

The patch below sets the tainted sysctl file to read only, otherwise
userspace can just overwrite/reset it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] typo in laptop_mode.txt
Pavel Machek [Tue, 24 Aug 2004 04:41:47 +0000 (21:41 -0700)]
[PATCH] typo in laptop_mode.txt

This patch is thanks to pavouk.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Coding style: do_this(a,b) vs. do_this(a, b)
Pavel Machek [Tue, 24 Aug 2004 04:41:35 +0000 (21:41 -0700)]
[PATCH] Coding style: do_this(a,b) vs. do_this(a, b)

Coding style document is not consistent with itself on whether there
should be space after ","... This makes it standardize on ", " option.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix 4K ext2fs support in 2.6 initrd's
Eric W. Biederman [Tue, 24 Aug 2004 04:41:24 +0000 (21:41 -0700)]
[PATCH] fix 4K ext2fs support in 2.6 initrd's

The ramdisk_blocksize option has been broken for quite a while in 2.6.
Making an initrd with a 4K ext2 filesystem impossible to use.

After digging into this, the problem turned out to that rd.c was not
setting the hard sector size.  There were a few secondary problems like
i_blkbits was not being set, and the number KiB in uncompressed ext2 images
was not taking into account the block size.

I have also corrected the surrounding comments as they were not just
incorrect but misleading.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] compat_do_execve() fix
Olaf Hering [Tue, 24 Aug 2004 04:41:13 +0000 (21:41 -0700)]
[PATCH] compat_do_execve() fix

For some reasons ls -l /proc/$$/exe doesnt work all time for me,
with 2.6.8.1 on ppc64. Sometimes it does, sometimes not. No pattern.
A few printks show that this check in proc_pid_readlink() triggers
an -EACCES:

current->fsuid != inode->i_uid

proc_pid_readlink(755) error -13 ntptrace(11408) fsuid 100 i_uid 0 0
sys_readlink(281) ntptrace(11408) error -13 readlink

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add pci dependencies to drivers/media/dvb/ttpci/Kconfig
Cornelia Huck [Tue, 24 Aug 2004 04:41:02 +0000 (21:41 -0700)]
[PATCH] Add pci dependencies to drivers/media/dvb/ttpci/Kconfig

The drivers under drivers/media/dvb/ttpci depend on pci (especially since
they select VIDEO_SAA7146, which depends on pci).

Signed-off-by: Cornelia Huck <kernel@cornelia-huck.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove last suser() call from drivers/char/rocket.c
Maximilian Attems [Tue, 24 Aug 2004 04:40:50 +0000 (21:40 -0700)]
[PATCH] remove last suser() call from drivers/char/rocket.c

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Reduce SELinux kernel memory use on 64-bit systems
James Morris [Tue, 24 Aug 2004 04:40:38 +0000 (21:40 -0700)]
[PATCH] Reduce SELinux kernel memory use on 64-bit systems

The patch below reduces kernel memory used by SELinux policy rules by about
37% on 64-bit systems.  This is because the size of struct avtab_node is 40
bytes on 64-bit, and defaults to a size-64 slab.

Creating a slab cache specifically for these structs saves considerable
amounts of kernel memory on 64-bit systems with large rulesets.  'Strict'
policy has over 300k rules, while 'targeted' policy has around 3k rules.

Here's the slabtop output with 64 and 40 byte sized slabs to show the
memory savings, for strict policy:

303475 303447  99%    0.06K   4975       61     19900K avtab_node
303456 303447  99%    0.04K   3161       96     12644K avtab_node

Also, there are 57% more objects per slab.

Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] SELinux: fix name_bind audit
Stephen D. Smalley [Tue, 24 Aug 2004 04:40:27 +0000 (21:40 -0700)]
[PATCH] SELinux: fix name_bind audit

This patch restores the proper auditing behavior for the name_bind check.

Author:  James Morris <jmorris@redhat.com>
Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] SElinux; defer inode security initialization
Stephen D. Smalley [Tue, 24 Aug 2004 04:40:15 +0000 (21:40 -0700)]
[PATCH] SElinux; defer inode security initialization

This patch defers setting the inode security state for newly created inodes
until after policy has been loaded.

Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] SELinux: revalidate access to controlling tty
Stephen D. Smalley [Tue, 24 Aug 2004 04:40:03 +0000 (21:40 -0700)]
[PATCH] SELinux: revalidate access to controlling tty

This patch changes the SELinux flush_unauthorized_files function to also
recheck access to the controlling tty and reset it if it is no longer
accessible under the new security context.  This patch is relative to the
selinuxfs devnull patch.

Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] SELinux: add null device node to selinuxfs, remove open_devnull
Stephen D. Smalley [Tue, 24 Aug 2004 04:39:52 +0000 (21:39 -0700)]
[PATCH] SELinux: add null device node to selinuxfs, remove open_devnull

This patch adds a null device node to selinuxfs and replaces the SELinux
open_devnull() code by simply acquiring a reference to this node each time,
based on a comment by Al Viro on lkml (see
http://marc.theaimsgroup.com/?l=linux-kernel&m=108664922032035&w=2).

Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix access of files up to 4 GB support for ISO9660 filesystems
Jeff Mahoney [Tue, 24 Aug 2004 04:39:40 +0000 (21:39 -0700)]
[PATCH] Fix access of files up to 4 GB support for ISO9660 filesystems

Since the filesystem doesn't explicitly set s->s_maxbytes, seeks will fail
beyond 2^32-1, due to s->s_maxbytes being set to the default of
MAX_NON_LFS.

Attached is the quick one liner fix.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reiserfs: xattr/acl fixes
Jeff Mahoney [Tue, 24 Aug 2004 04:39:28 +0000 (21:39 -0700)]
[PATCH] reiserfs: xattr/acl fixes

Here are a few fixes for bugs noticed on reiserfs-list or our own bugzilla.

Attached is a patch that fixes several problems with xattrs/acls:
[SECURITY] Fixes the inode not getting dirtied when mode is set
           via setxattr()
[CORRECTNESS] Fixes the inode not getting ctime updated when an xattr is
              removed
[DATA] Fixes an issue with dcache hash colliding names in the filesystem
       root caused by the d_compare to hide .reiserfs_priv. The bug
       can only occur in the filesystem root, which is why we haven't
       seen many (any, outside of the suse bugzilla, afaik) reports on
       this. The results are that dcache operations on colliding entries
       in the fs root will choose the first match rather than the
       correct entry.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] synclink_cs.c: replace syncppp with genhdlc
Paul Fulghum [Tue, 24 Aug 2004 04:39:17 +0000 (21:39 -0700)]
[PATCH] synclink_cs.c: replace syncppp with genhdlc

Replace syncppp interface with generic HDLC interface.  Generic HDLC
provides superset of syncppp function.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] synclinkmp.c: replace syncppp with genhdlc
Paul Fulghum [Tue, 24 Aug 2004 04:39:05 +0000 (21:39 -0700)]
[PATCH] synclinkmp.c: replace syncppp with genhdlc

Replace syncppp interface with generic HDLC interface.  Generic HDLC
provides superset of syncppp function.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] synclink.c: replace syncppp with genhdlc
Paul Fulghum [Tue, 24 Aug 2004 04:38:55 +0000 (21:38 -0700)]
[PATCH] synclink.c: replace syncppp with genhdlc

Replace syncppp interface with generic HDLC interface.  Generic HDLC
provides superset of syncppp function.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Move param section out of init area, for export of built-in module params
Rusty Russell [Tue, 24 Aug 2004 04:38:43 +0000 (21:38 -0700)]
[PATCH] Move param section out of init area, for export of built-in module params

When exporting the module parameters of built-in modules, we need to access
the respective struct kernel_parameters.  Currently, they're freed at init
time, and obviously this can't continue to be done.  So, move them out of
__init_begin and __init_end and into RODATA in asm-generic/vmlinux.lds.h.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (modified)
Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix Permissions on module_param Usage
Rusty Russell [Tue, 24 Aug 2004 04:38:29 +0000 (21:38 -0700)]
[PATCH] Fix Permissions on module_param Usage

module_param() and family take a "perms" argument; several people have
incorrectly used "644" instead of "0644".

(I have a patch which checks for sane perms at compile time, but it bloats
modules, so I haven't included it.)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Centralize i386 Constants
Rusty Russell [Tue, 24 Aug 2004 04:38:17 +0000 (21:38 -0700)]
[PATCH] Centralize i386 Constants

__FIXADDR_TOP and PAGE_OFFSET are hardcoded in various places.  I had to
change it to run the kernel under qemu-fast, so I wanted to centralize
them.

To do this, we rename vsyscall.lds to vsyscall.lds.s, and generate it from
vsyscall.lds.S.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (created)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[SELINUX]: Fix bugs introduced by skb_header_pointer() changes.
Stephen D. Smalley [Tue, 24 Aug 2004 04:35:14 +0000 (21:35 -0700)]
[SELINUX]: Fix bugs introduced by skb_header_pointer() changes.

Lines assigning initial value to 'ret' were removed
erroneously.

Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] Read cpumasks every time when exporting through sysfs
Rusty Russell [Tue, 24 Aug 2004 04:34:21 +0000 (21:34 -0700)]
[PATCH] Read cpumasks every time when exporting through sysfs

Paul Jackson points out that the sysfs code saves a node's cpumask in the
sysfs node, although it can change with CPU hotplug.  Don't do this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove cacheline alignment from inode slabs
Anton Blanchard [Tue, 24 Aug 2004 04:34:08 +0000 (21:34 -0700)]
[PATCH] remove cacheline alignment from inode slabs

Most of the inode slabs are cacheline aligned.  This can waste a fair
amount of memory, especially on architectures with large cacheline sizes
(eg 128 bytes).

Alignment has a few advantages.  It prevents 2 cpus from accessing 2 data
structures in the same cacheline.  Since struct inodes are well over a
cacheline and there are so many of them, there is little chance we will hit
this problem if we remove the alignment.

Alignment also ensures the maximum amount of the data structure is in the
same cacheline (instead of straddling 2 for example).  The large size of
struct inode reduces this advantage.

With this patch the inode_cache slab goes from 640 bytes to 544 bytes, and
the number that fits in a 4kB slab goes from 6 to 7 on ppc64.  A number of
other inode slabs also see improvements.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reduce size of struct dentry on 64bit
Anton Blanchard [Tue, 24 Aug 2004 04:33:55 +0000 (21:33 -0700)]
[PATCH] reduce size of struct dentry on 64bit

Reduce size of struct dentry from 248 to 232 bytes on 64bit.

- Reduce size of qstr by 8 bytes, placing int hash and int len together.
  We gain a further 4 byte saving when qstr is used in struct dentry
  since qstr goes from 24 to 16 bytes and the next member (d_lru)
  requires 8 byte alignment (which means 4 bytes of padding).

- Move d_mounted to the end, since char d_iname[] only requires 1 byte
  alignment. This reduces struct dentry by another 4 bytes.

With these changes the number of objects we can fit into a 4kB slab
goes from 16 to 17 on ppc64.

Note the above assumes the architecture naturally aligns types.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reduce size of struct buffer_head on 64bit
Anton Blanchard [Tue, 24 Aug 2004 04:33:43 +0000 (21:33 -0700)]
[PATCH] reduce size of struct buffer_head on 64bit

Reduce size of buffer_head from 96 to 88 bytes on 64bit architectures by
putting b_count and b_size together.  b_count will still be in the first 16
bytes on 32bit architectures, so 16 byte cacheline machines shouldnt be
affected.

With this change the number of objects per 4kB slab goes up from 40 to 44
on ppc64.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix ttyS0 vs. ttyS00 confusion
Pavel Machek [Tue, 24 Aug 2004 04:33:32 +0000 (21:33 -0700)]
[PATCH] Fix ttyS0 vs. ttyS00 confusion

According to devices.txt, serial ports are reffered as ttyS0 (and not
ttyS00).  It would be nice to use that convention in printks, too.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] use simple_read_from_buffer in proc_info_read and proc_pid_attr_read
Chris Wright [Tue, 24 Aug 2004 04:33:20 +0000 (21:33 -0700)]
[PATCH] use simple_read_from_buffer in proc_info_read and proc_pid_attr_read

Use simple_read_from_buffer in proc_info_read and proc_pid_attr_read.  Viro
had ack'd this earlier.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] use simple_read_from_buffer in selinuxfs
Chris Wright [Tue, 24 Aug 2004 04:33:08 +0000 (21:33 -0700)]
[PATCH] use simple_read_from_buffer in selinuxfs

Use simple_read_from_buffer.  This also eliminates page allocation for the
sprintf buffer.  Switch to get_zeroed_page instead of open-coding it.  Viro
had ack'd this earlier.  Still applies w/ the transaction update.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix typos in security/security.c
Chris Wright [Tue, 24 Aug 2004 04:32:57 +0000 (21:32 -0700)]
[PATCH] Fix typos in security/security.c

Fix typos in security/security.c.

From: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] configurable SELinux bootparam value
Chris Wright [Tue, 24 Aug 2004 04:32:45 +0000 (21:32 -0700)]
[PATCH] configurable SELinux bootparam value

Add configure option for setting default SELinux bootparam value.  Ack'd by
James Morris.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[IPSEC]: Add SCTP to xfrm_flowi_{sport,dport}()
Hideaki Yoshifuji [Tue, 24 Aug 2004 04:32:44 +0000 (21:32 -0700)]
[IPSEC]: Add SCTP to xfrm_flowi_{sport,dport}()

Signed-off-by: HIDEAKI Yoshifuji <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] small simplification for two SECURITY dependencies
Chris Wright [Tue, 24 Aug 2004 04:32:33 +0000 (21:32 -0700)]
[PATCH] small simplification for two SECURITY dependencies

I'd suggest the patch below to let the SECURITY_CAPABILITIES and
SECURITY_ROOTPLUG dependencies look a bit more simple.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix some comments about epoch in arch/alpha/kernel/time.c
Christoph Hellwig [Tue, 24 Aug 2004 04:32:21 +0000 (21:32 -0700)]
[PATCH] fix some comments about epoch in arch/alpha/kernel/time.c

(from the Debian kernel package)

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: remove dead CONFIG_KERNEL_ELF Kconfig entry
Christoph Hellwig [Tue, 24 Aug 2004 04:32:10 +0000 (21:32 -0700)]
[PATCH] ppc32: remove dead CONFIG_KERNEL_ELF Kconfig entry

We don't allow non-ELF kernels since 2.0 days, and surprisingly this is not
actually checked anywhere.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] BUG() on inconsistant dcache tree in may_delete
Christoph Hellwig [Tue, 24 Aug 2004 04:31:58 +0000 (21:31 -0700)]
[PATCH] BUG() on inconsistant dcache tree in may_delete

This can't happen with a sane filesystem (but is triggered by the buggy
clearcase bin only kernel module), so let's better BUG_ON early.

Adopted from Al's patch in the RH tree.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reduce pty.c ifdef clutter
Christoph Hellwig [Tue, 24 Aug 2004 04:31:47 +0000 (21:31 -0700)]
[PATCH] reduce pty.c ifdef clutter

- build only if either CONFIG_LEGACY_PTYS or CONFIG_UNIX98_PTYS are set
  instead of testing in the file

- try to keep big CONFIG_LEGACY_PTYS and CONFIG_UNIX98_PTYS ifdef blocks
  at the end of the file instead of cluttering all over

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix sn_console for CONFIG_SMP=n
Jesse Barnes [Tue, 24 Aug 2004 04:31:37 +0000 (21:31 -0700)]
[PATCH] fix sn_console for CONFIG_SMP=n

I found that sn_console was missing an include and a fix if CONFIG_SMP=n.
This patch fixes up the two small problems I found.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] don't print per-cpu delay loop calibration
Jesse Barnes [Tue, 24 Aug 2004 04:31:25 +0000 (21:31 -0700)]
[PATCH] don't print per-cpu delay loop calibration

People are mainly concerned with showing off their total bogomips, not
per-cpu bogomips, so turn it into a KERN_DEBUG message for the benefit of
systems with lots of CPUs.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] libfs: move transaction file ops into libfs
James Morris [Tue, 24 Aug 2004 04:31:13 +0000 (21:31 -0700)]
[PATCH] libfs: move transaction file ops into libfs

Below is an updated version of the patch which moves duplicated
transaction-based file operation code into libfs.  Since the last post, the
patch has been through a couple of iterations with Al, who suggested a
number of cleanups including locking and interface simplification.

For filesystem writers, the interface is now much simpler.  The
simple_transaction_get() helper should be part of the file op write method.
 This safely obtains the transaction request data during write(), allocates
a page for it and stores it there.  The data is returned to the caller for
potential further processing, which then makes it available for the next
read() call via simple_transaction_set().  See the selinuxfs and nfsctl
code for examples of use.

Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ix86,x86_64 cpu features
Pawel Sikora [Tue, 24 Aug 2004 04:31:02 +0000 (21:31 -0700)]
[PATCH] ix86,x86_64 cpu features

Attached patch fix/add several cpu features.

refs:

[1] Intel Processor Identification and the CPUID instruction
    Application Note 485.
    http://developer.intel.ru/download/design/Xeon/applnots/24161826.pdf

[2] http://www.sandpile.org/ia32/cpuid.htm

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86: quieten the "ESR value" printks
Dave Jones [Tue, 24 Aug 2004 04:30:50 +0000 (21:30 -0700)]
[PATCH] x86: quieten the "ESR value" printks

Only print out the ESR value if it changes after enabling vector.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Use posix headers in sumversion.c
Ben Leslie [Tue, 24 Aug 2004 04:30:39 +0000 (21:30 -0700)]
[PATCH] Use posix headers in sumversion.c

When compiling Linux on Mac OSX I had trouble with scripts/sumversion.c.
It includes <netinet/in.h> to obtain to definitions of htonl and ntohl.

On Mac OSX these are found in <arpa/inet.h>.  After checking the POSIX
specification it appears that this is the correct place to get the
definitons for these functions.

(http://www.opengroup.org/onlinepubs/009695399/functions/htonl.html)

Using this header also appears to work on Linux (at least with
Glibc-2.3.2).

It seems clearer to me to go with the POSIX standard than implementing
#if __APPLE__ style macros, but if such an approach is preferred I can
supply patches for that instead.

A patch against 2.6.7 which change <netinet/in.h> -> <arpa/inet.h> is
attached.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>