]> git.hungrycats.org Git - linux/log
linux
22 years agoMerge bk://are.twiddle.net/axp-2.6/
Linus Torvalds [Sat, 25 Sep 2004 12:37:35 +0000 (05:37 -0700)]
Merge bk://are.twiddle.net/axp-2.6/
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ALPHA] Regenerate defconfig.
Richard Henderson [Sat, 25 Sep 2004 11:56:01 +0000 (04:56 -0700)]
[ALPHA] Regenerate defconfig.

22 years ago[ALPHA] Turn off GENERIC_IOMAP. Arrange for iomap routines
Richard Henderson [Sat, 25 Sep 2004 11:54:32 +0000 (04:54 -0700)]
[ALPHA] Turn off GENERIC_IOMAP.  Arrange for iomap routines
to be linked unconditionally.

22 years ago[PATCH] ppc64: Fix 32 bits conversion of SI_TIMER signals
Benjamin Herrenschmidt [Sat, 25 Sep 2004 11:41:38 +0000 (04:41 -0700)]
[PATCH] ppc64: Fix 32 bits conversion of SI_TIMER signals

The current 32 bits translation of the SI_TIMER is wrong on ppc64, causing
the tst-timer4 testcase of glibc to fail in 32 bits. This patch fixes it.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix posix_locks_deadlock()
Matthew Wilcox [Sat, 25 Sep 2004 11:35:17 +0000 (04:35 -0700)]
[PATCH] fix posix_locks_deadlock()

The "blocked_list" used for POSIX deadlock detection should only contain
POSIX locks, or posix_locks_deadlock() can get confused.

As I've noted before (but never posted a patch), we should probably stop
checking for deadlock.  POSIX says it's optional for an implementation
to check for deadlock, and since the change to match on tgid, we can
report a deadlock when none exists.

[ Further explanation for Linus: POSIX locks and BSD locks don't block
  each other, so checking that the blocker is a POSIX lock also implies
  that the waiter is a POSIX lock. ]

22 years agoMake smbfs with UNIX extensions get file disk usage count right.
Linus Torvalds [Sat, 25 Sep 2004 08:51:42 +0000 (01:51 -0700)]
Make smbfs with UNIX extensions get file disk usage count right.

We need to convert from bytes to blocks, and we also need to
handle the fact that old smbd's will round up the disk usage
bytecount to even multiples of 1MB, and gracefully fall back
on an estimate based on the file size instead in that case.

Acked by Samuel Thibault who noted the problem in the first
place, and Jeremy Allison wrt smbd behavior.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge kanga.twiddle.home:/home/rth/work/linux/linus-2.6
Richard Henderson [Sat, 25 Sep 2004 07:38:38 +0000 (00:38 -0700)]
Merge kanga.twiddle.home:/home/rth/work/linux/linus-2.6
into kanga.twiddle.home:/home/rth/work/linux/axp-2.6

22 years ago[ALPHA] Fix bitops.h, kernel.h include loop.
Richard Henderson [Sat, 25 Sep 2004 07:12:19 +0000 (00:12 -0700)]
[ALPHA] Fix bitops.h, kernel.h include loop.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Fri, 24 Sep 2004 11:07:35 +0000 (04:07 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM] Fix circular include dependency in asm/system.h
Russell King [Sat, 25 Sep 2004 01:33:08 +0000 (02:33 +0100)]
[ARM] Fix circular include dependency in asm/system.h

The recent addition of linux/bitops.h inside linux/kernel.h has
created a circular dependency:

asm/system.h -> linux/kernel.h -> linux/bitops.h -> asm/bitops.h
 -> asm/system.h

which results in an unbuildable kernel.  We appear not to need
linux/kernel.h in asm/system.h, but do need linux/linkage.h, so
make this the case.

22 years agoMerge bk://kernel.bkbits.net/davem/nf-2.6
Linus Torvalds [Fri, 24 Sep 2004 09:00:43 +0000 (02:00 -0700)]
Merge bk://kernel.bkbits.net/davem/nf-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Fri, 24 Sep 2004 14:23:56 +0000 (07:23 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[NETFILTER]: Move ip_ct_log_invalid to ip_conntrack_core.c
Patrick McHardy [Fri, 24 Sep 2004 07:30:24 +0000 (00:30 -0700)]
[NETFILTER]: Move ip_ct_log_invalid to ip_conntrack_core.c

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years agoMerge nuts.davemloft.net:/disk1/BK/nf-work-2.6
David S. Miller [Fri, 24 Sep 2004 07:16:00 +0000 (00:16 -0700)]
Merge nuts.davemloft.net:/disk1/BK/nf-work-2.6
into nuts.davemloft.net:/disk1/BK/nf-2.6

22 years ago[SPARC64]: Start timer tick after interpolator is registered.
David S. Miller [Fri, 24 Sep 2004 06:29:02 +0000 (23:29 -0700)]
[SPARC64]: Start timer tick after interpolator is registered.

Else we risk an OOPS.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Update defconfig.
David S. Miller [Fri, 24 Sep 2004 05:35:24 +0000 (22:35 -0700)]
[SPARC64]: Update defconfig.

22 years agoThe generic iomap library needs to be linked unconditionally.
Linus Torvalds [Fri, 24 Sep 2004 05:13:15 +0000 (22:13 -0700)]
The generic iomap library needs to be linked unconditionally.

Otherwise modules that get loaded dynamically will not be able
to resolve the iomap functions, if no built-in drivers caused
it to be linked in at compile-time.

22 years agoppc64: clean up generated files at "make clean"
Linus Torvalds [Fri, 24 Sep 2004 04:30:12 +0000 (21:30 -0700)]
ppc64: clean up generated files at "make clean"

It missed the new vmlinux.strip file.

22 years agofb: add __iomem annotations to cfbimgblt
Linus Torvalds [Fri, 24 Sep 2004 04:28:09 +0000 (21:28 -0700)]
fb: add __iomem annotations to cfbimgblt

22 years ago[PATCH] compile fix 3c59x for eisa without pci
Maximilian Attems [Fri, 24 Sep 2004 02:47:32 +0000 (19:47 -0700)]
[PATCH] compile fix 3c59x for eisa without pci

 # CONFIG_PCI is not set
 CONFIG_EISA=y

drivers/net/3c59x.c: In function `vortex_ioctl':
drivers/net/3c59x.c:2916: warning: dereferencing `void *' pointer
drivers/net/3c59x.c:2916: error: request for member `current_state' in something not a structure or union

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mmtimer quietness
Christoph Lameter [Fri, 24 Sep 2004 02:47:20 +0000 (19:47 -0700)]
[PATCH] mmtimer quietness

Quiet mmtimer on non-SGI boxes (previously it printed "mmtimer: unable to
determine clock frequency").

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: don't trash return value
Jeff Dike [Fri, 24 Sep 2004 02:47:08 +0000 (19:47 -0700)]
[PATCH] uml: don't trash return value

From: Doug Dumitru <doug@easyco.com>

I have been fighting a buffering error when sending large amounts of data out
pty devices from UML.  I have tried a couple of patches that did not really
fix the problem (and were rightly rejected by the group), but have finally
found the real bug.

In /arch/um/drivers/line.c there is a function "buffer_data" that is
responsible for storing data into the lines ring buffer.  The function is
"supposed" to return the number of characters actually buffered.
Unfortunately, in the case where the buffer wraps, the "len" variable is
decremented by "end" before it is used as the return parameter.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: print errno before resetting it
Jeff Dike [Fri, 24 Sep 2004 02:46:56 +0000 (19:46 -0700)]
[PATCH] uml: print errno before resetting it

Make sure we print ERRNO and not always -1.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix fencepost errors in printks
Jeff Dike [Fri, 24 Sep 2004 02:46:44 +0000 (19:46 -0700)]
[PATCH] uml: fix fencepost errors in printks

Simple corrections to some error messages, which list wrong limits for UBD
devices and such.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: error message improvement
Jeff Dike [Fri, 24 Sep 2004 02:46:32 +0000 (19:46 -0700)]
[PATCH] uml: error message improvement

Output a nice error message for people who need mem > 256M but don't increase
on the host /proc/sys/vm/max_map_count, telling them to do so.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: implement current_text_addr
Jeff Dike [Fri, 24 Sep 2004 02:46:21 +0000 (19:46 -0700)]
[PATCH] uml: implement current_text_addr

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: linker script cleanup
Jeff Dike [Fri, 24 Sep 2004 02:46:09 +0000 (19:46 -0700)]
[PATCH] uml: linker script cleanup

From: "D.  Bahi" @ enterasys.com - remove an unneeded line from the dynamic
linker script.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: allow UML to load in the normal location
Jeff Dike [Fri, 24 Sep 2004 02:45:57 +0000 (19:45 -0700)]
[PATCH] uml: allow UML to load in the normal location

This makes UML load at 0x8048000 rather than 0xa0000000 when CONFIG_MODE_SKAS
is on and CONFIG_MODE_TT is off.  This will make it more valgrind-friendly,
and also allow much greater physical memory sizes without needing to use
highmem.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove an unused header
Jeff Dike [Fri, 24 Sep 2004 02:45:45 +0000 (19:45 -0700)]
[PATCH] uml: remove an unused header

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: free wrapper fixes
Jeff Dike [Fri, 24 Sep 2004 02:45:33 +0000 (19:45 -0700)]
[PATCH] uml: free wrapper fixes

__wrap_free is now careful about freeing to the same allocator that allocated
the buffer.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: small Makefile fixes
Jeff Dike [Fri, 24 Sep 2004 02:45:21 +0000 (19:45 -0700)]
[PATCH] uml: small Makefile fixes

Tidied up some whitespace in arch/um/Makefile.  Added -DUM_FASTCALL to
Makefile-i386.  make clean descends into util in order to get rid of the
binaries there.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: move linker script
Jeff Dike [Fri, 24 Sep 2004 02:45:09 +0000 (19:45 -0700)]
[PATCH] uml: move linker script

arch/um/uml.lds.S has already been moved to arch/um/kernel. dyn.lds.S has just
been forgotten, so fix this.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] preserve irqs in time_resume()
Li Shaohua [Fri, 24 Sep 2004 02:44:47 +0000 (19:44 -0700)]
[PATCH] preserve irqs in time_resume()

Unconditionally enabling interrupts is upsetting the ACPI time resume code.

Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] gcc-4.0 build fixes
Grzegorz Jaskiewicz [Fri, 24 Sep 2004 02:44:35 +0000 (19:44 -0700)]
[PATCH] gcc-4.0 build fixes

Fix various gcc-4.0 compilation errors.

Signed-off-by: Grzegorz Jaskiewicz <gj at pointblue.com.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix generic direct IO code for XFS
Nathan Scott [Fri, 24 Sep 2004 02:44:23 +0000 (19:44 -0700)]
[PATCH] Fix generic direct IO code for XFS

The following patch to the generic direct IO code fixes a problem we've
come across that affects the way XFS interacts with it.  Between 2.6.5 and
2.6.6 several changes to direct IO were made, in particular the
fallback-to-buffered path was introduced in that timeframe.

Those changes split the locking done within direct-io.c into two cases -
generic filesystems and blkdev/XFS.  There is no locking done for the
second case, and we also never set the create parameter to the get_blocks
call (via direct_io_worker ->do_direct_IO->get_more_blocks) for that case.
This meant that XFS was accidentally no longer being told when a direct IO
write was being performed, which in turn meant that XFS would (often -
depending on the inode's size and bmap) tell get_more_blocks that it was
mapping to a hole.  It also means that currently all direct writes into XFS
are falling back to buffered writes.  Further, skipping the i_alloc_sem
locking entirely is not correct for us, we are relying on that aspect of
the generic locking.

The fallback behaviour from direct to buffered is "silent", so we didn't
actually pick up on these problems until just recently, unfortunately.

The approach I've taken here is to split the blkdev/XFS case into two, and
corrected the new third case behaviour for the functionality XFS provides.
The generic behavior used by other filesystems remains unchanged, as does
direct IO to the block device, and XFS now becomes fully functional.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: support PTRACE_GETREGS and PTRACE_SETREGS
Hirokazu Takata [Fri, 24 Sep 2004 02:44:11 +0000 (19:44 -0700)]
[PATCH] m32r: support PTRACE_GETREGS and  PTRACE_SETREGS

Add PTRACE_GETREGS and PTRACE_SETREGS functions for the native debugging
support of the GNU Project Debugger, GDB.

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: upgrade for recent kernel changes
Hirokazu Takata [Fri, 24 Sep 2004 02:43:59 +0000 (19:43 -0700)]
[PATCH] m32r: upgrade for recent kernel changes

This patch is for upgrading m32r's code to the 2.6.9-rc1-mm5 source as well as
the other architectures.

* arch/m32r/Makefile: Replace assigment to CHECK with assignment to CHECKFLAGS

* arch/m32r/kernel/vmlinux.lds.S:
- out-of-line locks / m32r; Include LOCK_TEXT to .text section.
- Move param section out of init area, for export of built-in
  module params

* arch/m32r/mm/ioremap.c (__ioremap):
Add __iomem modifier to the return value type of __ioremap()
for much stricter type-checking.

* include/asm-m32r/resource.h:
- rlimit-based mlocks for unprivileged users
- Increase per-user mlock limit default to 32k

* include/asm-m32r/socket.h:
- [NET]: Move SOCK_foo types into linux/net.h

* include/asm-m32r/unistd.h:
  Add system calls; taken from asm-i386/unistd.h.
    - [PATCH][2/6] perfctr-2.7.3 for 2.6.7-rc1-mm1: i386  (05/31/2004)
    - [PATCH] Make key management use syscalls not prctls (09/06/2004)

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dio fine alignment and pages in io
Badari Pulavarty [Fri, 24 Sep 2004 02:43:47 +0000 (19:43 -0700)]
[PATCH] dio fine alignment and pages in io

Here is the fix for dio_new_bio() BUG() with fsx tests.  The problem is, I
changed dio_pages_in_io calculation to be exactly the number of pages we
needed to map the user-buffer to do the IO.  But with fine-grain alignment
(non fs-blocksize), we may need 2 more pages (ZERO_PAGE) to zero out first
and last block if needed.

Here is the bug info.

http://bugme.osdl.org/show_bug.cgi?id=3447

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radeonfb: Fix newer PowerBook & warnings
Benjamin Herrenschmidt [Fri, 24 Sep 2004 02:37:50 +0000 (19:37 -0700)]
[PATCH] radeonfb: Fix newer PowerBook & warnings

This fixes a few warnings in radeonfb and add proper PLL divider values
for Apple latest PowerBook Aliminium 17" so the display isn't "fuzzy"
(the LVDS interface needs special PLL values that the driver can't
calculate, on most x86, the BIOS tells us the values to use, on Apple
laptops, we have to hard code them for each model).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix warning in pmac battery code
Benjamin Herrenschmidt [Fri, 24 Sep 2004 02:37:38 +0000 (19:37 -0700)]
[PATCH] ppc32: Fix warning in pmac battery code

The battery calculation code in via-pmu triggers a few warnings (and
actually, one of them would lead to a real error if we ever get an
unrecognized type from the PMU).  Fix this.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: ADB keycode conversion update
Benjamin Herrenschmidt [Fri, 24 Sep 2004 02:37:26 +0000 (19:37 -0700)]
[PATCH] ppc32: ADB keycode conversion update

This makes the ADB->Linux keycodes conversion table a lot more readable
(and thus easy to fix :) and adds conversion of the laptop Fn-enter
(keypad enter, also present on apple laptop keyboards on the bottom
right, left of the arrow keys) to "compose" (or menu key on modern PC
keyboard).

Thanks to Frank Murphy <murphyf@f-m.fm> for spotting this keycode
feature of MacOS (and apple docs)

It also fixes a small possible race in the LED code

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32/64: Fix warning in pmac ide
Benjamin Herrenschmidt [Fri, 24 Sep 2004 02:37:14 +0000 (19:37 -0700)]
[PATCH] ppc32/64: Fix warning in pmac ide

This is a gcc error, but let's fix it anyway, it isn't a perf critical
codepath and warnings are ugly.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoppc: annotate pmac ide driver
Linus Torvalds [Fri, 24 Sep 2004 02:35:12 +0000 (19:35 -0700)]
ppc: annotate pmac ide driver

Another bunch of annoying warnings gone, and code cleaned up.

22 years agoMerge bk://linux-ntfs.bkbits.net/ntfs-2.6
Linus Torvalds [Fri, 24 Sep 2004 02:31:53 +0000 (19:31 -0700)]
Merge bk://linux-ntfs.bkbits.net/ntfs-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoNTFS: Fix a stupid bug where I forgot to actually do the attribute lookup
Anton Altaparmakov [Fri, 24 Sep 2004 17:58:01 +0000 (18:58 +0100)]
NTFS: Fix a stupid bug where I forgot to actually do the attribute lookup
      and then went and used the looked up attribute...  Ooops.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoMerge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
Anton Altaparmakov [Fri, 24 Sep 2004 15:07:03 +0000 (16:07 +0100)]
Merge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
into cantab.net:/home/src/ntfs-2.6-devel

22 years agoNTFS: 2.1.19 - Many cleanups, improvements, and a minor bug fix.
Anton Altaparmakov [Fri, 24 Sep 2004 15:05:24 +0000 (16:05 +0100)]
NTFS: 2.1.19 - Many cleanups, improvements, and a minor bug fix.

- Fix bug found by the new sparse bitwise warnings where the default
  upcase table was defined as a pointer to wchar_t rather than ntfschar
  in fs/ntfs/ntfs.h and super.c.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoNTFS: Finish off sparse annotation.
Anton Altaparmakov [Fri, 24 Sep 2004 14:54:52 +0000 (15:54 +0100)]
NTFS: Finish off sparse annotation.

- Fix all the sparse bitwise warnings.  Had to change all the enums
  storing little endian values to #defines because we cannot set enums
  to be little endian so we had lots of bitwise warnings from sparse.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoNTFS: Continuing sparse annotations: finish data types and header files.
Anton Altaparmakov [Fri, 24 Sep 2004 12:12:17 +0000 (13:12 +0100)]
NTFS: Continuing sparse annotations: finish data types and header files.

- Add leMFT_REF data type to fs/ntfs/layout.h.
- Update all NTFS header files with the new little endian data types.
  Affected files are fs/ntfs/layout.h, logfile.h, and time.h.
- Do proper type casting when using ntfs_is_*_recordp() in
  fs/ntfs/logfile.c, mft.c, and super.c.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoNTFS: Begin of sparse annotations: new data types and endianness conversion.
Anton Altaparmakov [Fri, 24 Sep 2004 11:02:18 +0000 (12:02 +0100)]
NTFS: Begin of sparse annotations: new data types and endianness conversion.

- Add le{16,32,64} as well as sle{16,32,64} data types to fs/ntfs/types.h.
- Change ntfschar to be le16 instead of u16 in fs/ntfs/types.h.
- Add le versions of VCN, LCN, and LSN called leVCN, leLCN, and leLSN,
  respectively, to fs/ntfs/types.h.
- Update endianness conversion macros in fs/ntfs/endian.h to use the
  new types as appropriate.
- Do proper type casting when using sle64_to_cpup() in fs/ntfs/dir.c
  and index.c.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Fri, 24 Sep 2004 05:09:39 +0000 (06:09 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years ago[PATCH] disable sched domains debug code
Jesse Barnes [Fri, 24 Sep 2004 01:59:31 +0000 (18:59 -0700)]
[PATCH] disable sched domains debug code

This disables the sched domains debug code, which has a tendency to
print out a *lot* of information.  It's helpful for debugging, but a bit
overboard for general use.  Also, if you have a high NR_CPUS value, it
tends to scare people and overflow the dmesg buffer.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Thu, 23 Sep 2004 18:35:57 +0000 (19:35 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years agoNTFS: - Update ->truncate (fs/ntfs/inode.c::ntfs_truncate()) to check if the
Anton Altaparmakov [Thu, 23 Sep 2004 12:25:46 +0000 (13:25 +0100)]
NTFS: - Update ->truncate (fs/ntfs/inode.c::ntfs_truncate()) to check if the
        inode size has changed and to only output an error if so.
      - Rename fs/ntfs/attrib.h::attribute_value_length() to ntfs_attr_size().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoNTFS: Change '\0' and L'\0' to simply 0 as per advice from Linus Torvalds.
Anton Altaparmakov [Thu, 23 Sep 2004 12:05:08 +0000 (13:05 +0100)]
NTFS: Change '\0' and L'\0' to simply 0 as per advice from Linus Torvalds.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years ago[PATCH] ppc32: Fix typo/bug in bus resource allocation
Benjamin Herrenschmidt [Thu, 23 Sep 2004 11:24:13 +0000 (04:24 -0700)]
[PATCH] ppc32: Fix typo/bug in bus resource allocation

The code re-allocating new bus resources in case of conflicts use a
function called probe_resource(), which has a typo (spotted by the
uninitialized variable use of gcc) causing it to potentially return
bogus results. This fixes it:

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: adapt prom_init to offb change
Benjamin Herrenschmidt [Thu, 23 Sep 2004 11:14:24 +0000 (04:14 -0700)]
[PATCH] ppc32: adapt prom_init to offb change

The changes to prom_init/offb interaction introduced by the ppc64
monster cleanup patch need a fix to ppc32 prom_init so that offb
works again. ppc32 prom_init() could use a lot more cleanup, but
let's do the minimal fix to make it work now.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix use of uninitialized pointer in offb
Benjamin Herrenschmidt [Thu, 23 Sep 2004 11:14:12 +0000 (04:14 -0700)]
[PATCH] ppc32: Fix use of uninitialized pointer in offb

The recent ppc64 changes for offb introduced an uninitialized pointer
use for ppc32, here's the fix:

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix type/bug in pmac_feature.c
Benjamin Herrenschmidt [Thu, 23 Sep 2004 11:14:00 +0000 (04:14 -0700)]
[PATCH] ppc32: Fix type/bug in pmac_feature.c

A typo in pmac_feature.c can cause us to use a bogus node pointer when
iterating the i2c controllers during boot. Fortunately, it seems that
we always find the one we are looking for first, and thus never ended
up in an inifinite loop here, but let's fix it and fix the warning at
the same time.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix potentially uninitialized var in chrp_setup.c
Benjamin Herrenschmidt [Thu, 23 Sep 2004 11:13:48 +0000 (04:13 -0700)]
[PATCH] ppc32: Fix potentially uninitialized var in chrp_setup.c

In chrp_setup.c, chrp_int_ack could be left uninitialized and passed
"as-is" to i8259_init() if the OF node for the 8259 wasn't found.  I
don't know if that should happen, but the i8259 code can deal with
int_ack beeing 0, so let's be safe, initialize it, and remove a warning
at the same time.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix bogus return value in pmac_cpufreq.c
Benjamin Herrenschmidt [Thu, 23 Sep 2004 11:13:36 +0000 (04:13 -0700)]
[PATCH] ppc32: Fix bogus return value in pmac_cpufreq.c

There's an obvious uninitialized return value in pmac_cpufreq, here's
a fix:

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix Apple Xserve G4 PCI probing
Benjamin Herrenschmidt [Thu, 23 Sep 2004 11:13:24 +0000 (04:13 -0700)]
[PATCH] ppc32: Fix Apple Xserve G4 PCI probing

When pci_assign_all_busses is set, the common code will re-assign all
the bus numbers, which we still need to do one various pmacs, at least
until XFree/XOrg understands PCI domains properly.  However, this
process triggers a bug if during this renumbering, on a given segment, a
P2P bridge not yet renumbered has conflicting downstream bus range with
a P2P bridge just renumbered.  The probing will just behave randomly and
either miss devices, show duplicates, or just lockup in some
circumstances.  This is typically triggered on Apple Xserve G4s who have
at least 2 P2P bridges built-in on the same segment of the first PCI
(non-AGP) domain

The "workaround" we use on pmac that was in my tree for a while but got
"lost" during the big merge a while ago is to offset the bus numbers
between domains by 16.  This avoids the above collision scenario in all
practical cases.

The long term solution of course is to stop renumbering and make sure
that all drivers are domain safe (there may be a couple issue remaining
in the code that matches PCI / OF devices on ppc32) and XFree/XOrg has
to be fixed.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge cantab.net:/home/src/ntfs-2.6
Anton Altaparmakov [Thu, 23 Sep 2004 10:41:32 +0000 (11:41 +0100)]
Merge cantab.net:/home/src/ntfs-2.6
into cantab.net:/home/src/ntfs-2.6-devel

22 years agoMerge bk://bart.bkbits.net/ide-2.6
Linus Torvalds [Thu, 23 Sep 2004 09:36:20 +0000 (02:36 -0700)]
Merge bk://bart.bkbits.net/ide-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ide] make sure we are looking at the low bits post error
Bartlomiej Zolnierkiewicz [Thu, 23 Sep 2004 23:30:04 +0000 (01:30 +0200)]
[ide] make sure we are looking at the low bits post error

From: Brett Russ <russb@emc.com>

The following code needs to be added to ide_end_drive_cmd(),
since ide_error() calls ide_end_drive_cmd() after ide_dump_status()
has left the registers pointing at the high order part of the LBA.
Using the taskfile ioctl will then lead to hobRegister[] and
subsequently hob_ports[] being loaded with the wrong values.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
22 years agoMerge trik.(none):/home/bzolnier/bk/linux-2.6
Bartlomiej Zolnierkiewicz [Thu, 23 Sep 2004 22:26:06 +0000 (00:26 +0200)]
Merge trik.(none):/home/bzolnier/bk/linux-2.6
into trik.(none):/home/bzolnier/bk/ide-2.6

22 years ago[ide] amd74xx: don't probe for IRQs
Bartlomiej Zolnierkiewicz [Thu, 23 Sep 2004 18:52:51 +0000 (20:52 +0200)]
[ide] amd74xx: don't probe for IRQs

From: Nicholas Reilly <nreilly@magma.ca>

I have a Shuttle SN41G2 and the secondary IDE channel alternates between
IRQ 15 (correct) and IRQ 7 (causing failures accessing the DVD+-RW which is
master, no slave and also messing with the parallel port if it is enabled)
on each boot.  This is running ACPI and APIC on 2.6.5, 2.6.7 and 2.6.8.
dmesg, dmidecode and /proc/acpi/dsdt are all identical (apart from dmesg
printing of IRQ and errors it causes) regardless of whether it decides to
go on 7 or 15.  It is now running the latest BIOS, earlier BIOS did the
same.

bart: IRQ auto-detection sometimes fails and gets "screaming" IRQ

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Thu, 23 Sep 2004 09:35:16 +0000 (02:35 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge http://lia64.bkbits.net/linux-ia64-release-2.6.9
Linus Torvalds [Thu, 23 Sep 2004 09:34:13 +0000 (02:34 -0700)]
Merge http://lia64.bkbits.net/linux-ia64-release-2.6.9
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[IA64] When we exhaust the supply of records to read, clear the event status.
Tony Luck [Thu, 23 Sep 2004 23:14:45 +0000 (23:14 +0000)]
[IA64] When we exhaust the supply of records to read, clear the event status.

Patch written by Ben Woodard.  Sanity checked by Jesse Barnes.

Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[PATCH] ppc64: monster cleanup
Benjamin Herrenschmidt [Thu, 23 Sep 2004 09:09:54 +0000 (02:09 -0700)]
[PATCH] ppc64: monster cleanup

This is the third & hopefully final version of the monster cleanup
patch. It does significant cleanups of the early boot code of the
ppc64 kernel, and begins the long process of cleaning up & splitting
properly the platform support.

It completely reworks the interface between the early code that is
run in the firmware context (prom_init) and the rest of the kernel,
in such a way that will make kexec or static device-tree for embedded
people possible. The early init code can eventually be moved to a
separate link entity, it no longer touches any of the kernel globals,
everything is passed via a single blob of data in memory containing
a flattened version of the device-tree and a memory reserve map.

While doing it, I also cut the ties between pSeries and Powermac. Now,
the kernel config provides a choice between legacy iSeries and
"multiplatform". The later is a set of various supported platform,
each of them beeing a boolean switch, currently defined beeing pSeries
and PowerMac. You can enable both or just one of them. CONFIG_PPC_PSERIES
is now specifically set for IBM pSeries support, you can build a PowerMac
kernel without pSeries support if you which.
The main goal here is to simplify addition of new platform types.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[NETFILTER]: add comment match
Patrick McHardy [Thu, 23 Sep 2004 07:52:33 +0000 (00:52 -0700)]
[NETFILTER]: add comment match

2.4 version by Brad Fisher <brad@info-link.net>

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Fix invalid return values in sctp_new
Patrick McHardy [Thu, 23 Sep 2004 07:50:37 +0000 (00:50 -0700)]
[NETFILTER]: Fix invalid return values in sctp_new

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Fix two broken assertions
Patrick McHardy [Thu, 23 Sep 2004 07:46:15 +0000 (00:46 -0700)]
[NETFILTER]: Fix two broken assertions

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Cleanup ctstat
Martin Josefsson [Thu, 23 Sep 2004 07:45:27 +0000 (00:45 -0700)]
[NETFILTER]: Cleanup ctstat

This patch simply adds a macro to increase the statistics.
And it changes icmp_error to error in struct ip_conntrack_stat in order
to adopt to the tcp-windowtracking changes.

Based on patch by Pablo Neira.

Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Keep conntrack/nat protocols in array instead of linked list
Patrick McHardy [Thu, 23 Sep 2004 07:42:59 +0000 (00:42 -0700)]
[NETFILTER]: Keep conntrack/nat protocols in array instead of linked list

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Use u_int16_t for initialized/num_manips in struct ip_nat_info
Patrick McHardy [Thu, 23 Sep 2004 07:40:42 +0000 (00:40 -0700)]
[NETFILTER]: Use u_int16_t for initialized/num_manips in struct ip_nat_info

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: kill struct nf_ct_info, saves five pointers per conntrack
Patrick McHardy [Thu, 23 Sep 2004 07:40:01 +0000 (00:40 -0700)]
[NETFILTER]: kill struct nf_ct_info, saves five pointers per conntrack

The relationship of the skb to the conntrack is stored in a new field
in the skb.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: kill struct ip_nat_hash, saves two pointers per conntrack
Patrick McHardy [Thu, 23 Sep 2004 07:37:59 +0000 (00:37 -0700)]
[NETFILTER]: kill struct ip_nat_hash, saves two pointers per conntrack

The back-pointer is not needed when using list.h macros.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Shuffle conntrack structure for better cacheline behavior
Rusty Russell [Thu, 23 Sep 2004 07:36:22 +0000 (00:36 -0700)]
[NETFILTER]: Shuffle conntrack structure for better cacheline behavior

Every time we walk the conntrack hashtable list, we hit the same
cacheline that is dirtied by the use of the conntrack
entry. Shuffling these entries to the end should help this
(sizeof(struct ip_conntrack)) > cacheline size).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: add sysctl to read out the number of current connections
Harald Welte [Thu, 23 Sep 2004 07:34:29 +0000 (00:34 -0700)]
[NETFILTER]: add sysctl to read out the number of current connections

Apparently a lot of scripts use a construct like
cat /proc/net/ip_conntrack | wc -l
which has a negative impact on system performance due to all the locking
required.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Don't try to do any random dropping since we now use jenkins hash
Rusty Russell [Thu, 23 Sep 2004 07:33:20 +0000 (00:33 -0700)]
[NETFILTER]: Don't try to do any random dropping since we now use jenkins hash

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Missing TOS checks after fib_find_alias
Herbert Xu [Thu, 23 Sep 2004 06:20:02 +0000 (23:20 -0700)]
[IPV4]: Missing TOS checks after fib_find_alias

It looks like some of the places where FIB_SCAN_TOS macros were used
have lost the tos check.  This patch adds them back.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Fix thinko in fib_find_alias
Herbert Xu [Thu, 23 Sep 2004 06:18:34 +0000 (23:18 -0700)]
[IPV4]: Fix thinko in fib_find_alias

fib_find_alias is meant to return either an exact match or the
entry just before where it should be.  Currently it returns the
entry after that.  This patch fixes that.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Fix endless loop in fn_hash_delete.
Herbert Xu [Thu, 23 Sep 2004 06:17:16 +0000 (23:17 -0700)]
[IPV4]: Fix endless loop in fn_hash_delete.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[ATM]: [fore200e] fix warnings related to dma_addr_t
Chas Williams [Thu, 23 Sep 2004 06:14:45 +0000 (23:14 -0700)]
[ATM]: [fore200e] fix warnings related to dma_addr_t

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[ATM]: [ambassador] remove warnings related to unused variables
Chas Williams [Thu, 23 Sep 2004 06:13:49 +0000 (23:13 -0700)]
[ATM]: [ambassador] remove warnings related to unused variables

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[ATM]: [eni] fix __iomem related warnings
Chas Williams [Thu, 23 Sep 2004 06:13:02 +0000 (23:13 -0700)]
[ATM]: [eni] fix __iomem related warnings

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[ATM]: [lanai] get sleep interval right
Chas Williams [Thu, 23 Sep 2004 06:12:08 +0000 (23:12 -0700)]
[ATM]: [lanai] get sleep interval right

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[ARCNET]: Fix crash in 2.6.8.1
Hideaki Yoshifuji [Thu, 23 Sep 2004 06:11:12 +0000 (23:11 -0700)]
[ARCNET]: Fix crash in 2.6.8.1

>  I am trying to upgrade my labtop to 2.6.8.1. I have ArcNet COM20020
> PCMCIA card. After editing /etc/pcmcia/config to make it know about the
> module, it finds the com20020 with no problems but as soon as I try to
> start the network device the ifconfig process crashes.
:
> I fixed it by changing
>  lp->hw.open(dev);
> to
>  if(lp->hw.open) {
>  lp->hw.open(dev);
>  }

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[XFRM]: Fix unbalanced spin_unlock_bh in __xfrm_find_acq_byseq
Patrick McHardy [Thu, 23 Sep 2004 06:04:40 +0000 (23:04 -0700)]
[XFRM]: Fix unbalanced spin_unlock_bh in __xfrm_find_acq_byseq

This patch fixes an unbalanced spin_unlock_bh in
__xfrm_find_acq_byseq left over from the larval
state SA fix.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PKTGEN]: Update to 1.4
Robert Olsson [Thu, 23 Sep 2004 06:03:09 +0000 (23:03 -0700)]
[PKTGEN]: Update to 1.4

Stephen's patches. version change and hard_xmit printout removed.
And 2.7 is still a promise...

Signed-off-by: Robert Olsson <Robert.Olsson@data.slu.se>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Remove leading space in linux/skbuff.h
Olaf Hering [Thu, 23 Sep 2004 05:49:10 +0000 (22:49 -0700)]
[NET]: Remove leading space in linux/skbuff.h

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Kill remnant of ip_nat_dumb
Herbert Xu [Thu, 23 Sep 2004 05:47:33 +0000 (22:47 -0700)]
[IPV4]: Kill remnant of ip_nat_dumb

This line in net/ipv4/Makefile was left behind when the rest of the
dumb NAT option was taken out.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Check PAGE_SIZE in fz_hash_alloc
Herbert Xu [Thu, 23 Sep 2004 05:46:09 +0000 (22:46 -0700)]
[IPV4]: Check PAGE_SIZE in fz_hash_alloc

Here is a minor optimisation to fz_hash_alloc.  The break-even point
should be based on PAGE_SIZE rather than the value of divisor.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
22 years ago[NETFILTER]: Fix comment typo in ip_nat_helper.
Herbert Xu [Thu, 23 Sep 2004 05:44:30 +0000 (22:44 -0700)]
[NETFILTER]: Fix comment typo in ip_nat_helper.

22 years ago[PATCH] fix problematic flush_cache_page in kernel/ptrace.c
Russell King [Thu, 23 Sep 2004 01:08:58 +0000 (18:08 -0700)]
[PATCH] fix problematic flush_cache_page in kernel/ptrace.c

At present, flush_cache_page() is used to handle the case where we
unmap a page or alter the page permissions on the target page with
one exception - access_process_vm().  Based upon the former, the
decision to implement this function is:

        do we need to flush the cache when we unmap or change
        the mapping permissions?

However, kernel/ptrace.c: access_process_vm() also includes into this:

        or we need to ensure cache coherency between the kernel
        and user space mapping of this page.

I argue that the use of flush_cache_page() here in the generic
code is wrong, and if an architecture wishes to use it for this
purpose, it should do so within it's architecture private
implementation of copy_to_user_page() and copy_from_user_page().

So this patch removes the flush_cache_page() from kernel/ptrace.c,
adding it to the arch-specific copy_{to,from}_user_page() where
flush_cache_page is non-empty.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoNTFS: Improve the previous transparent union removal.
Anton Altaparmakov [Thu, 23 Sep 2004 00:13:39 +0000 (01:13 +0100)]
NTFS: Improve the previous transparent union removal.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/alex
Tony Luck [Wed, 22 Sep 2004 23:06:41 +0000 (23:06 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/alex
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoNTFS: Get rid of the ugly transparent union in fs/ntfs/dir.c::ntfs_readdir()
Anton Altaparmakov [Wed, 22 Sep 2004 21:07:55 +0000 (22:07 +0100)]
NTFS: Get rid of the ugly transparent union in fs/ntfs/dir.c::ntfs_readdir()
      and ntfs_filldir() as per suggestion from Al Viro.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>