- 05 Oct, 2002 11 commits
-
-
Andrew Morton authored
If the alignment checks in generic_direct_IO() fail, we end up not forcing writeback of dirty pagecache pages, but we still run invalidate_inode_pages2(). The net result is that dirty pagecache gets incorrectly removed. I guess this will expose unwritten disk blocks. So move the sync up into generic_file_direct_IO(), where we perform the invalidation. So we know that pagecache and disk are in sync before we do anything else.
-
Andrew Morton authored
The new truncate code needs to check page->mapping after acquiring the page lock. Because the page could have been unmapped by page reclaim or by invalidate_inode_pages() while we waited for the page lock. Also, the page may have been moved between a tmpfs inode and swapper_space. Because we don't hold the mapping->page_lock across the entire truncate operation any more. Also, change the initial truncate scan (the non-blocking one which is there to stop as much writeout as possible) so that it is immune to other CPUs decreasing page->index. Also fix negated test in invalidate_inode_pages2(). Not sure how that got in there.
-
Andrew Morton authored
From David Mosberger The patch below fixes a bug in nr_free_zone_pages() which shows when a zone has hole. The problem is due to the fact that "struct zone" didn't keep track of the amount of real memory in a zone. Because of this, nr_free_zone_pages() simply assumed that a zone consists entirely of real memory. On machines with large holes, this has catastrophic effects on VM performance, because the VM system ends up thinking that there is plenty of memory left over in a zone, when in fact it may be completely full. The patch below fixes the problem by replacing the "size" member in "struct zone" with "spanned_pages" and "present_pages" and updating page_alloc.c.
-
Andrew Morton authored
It hasn't caught any bugs, and it is causing confusion over whether this is a permanent part of list_del() behaviour.
-
Andrew Morton authored
From Bill Irwin This patch makes alloc_hugetlb_page() kmap() the memory it's zeroing, and cleans up a tiny bit of list handling on the side. Without this fix, it oopses every time it's called.
-
Andrew Morton authored
These numbers are being sent to userspace as number-of-sectors, whereas they should be number-of-k.
-
Brian Gerst authored
Removes the last member of the union, ext3.
-
Brian Gerst authored
Remove hpfs_sb from struct super_block.
-
Kai Mäkisara authored
fix device numbering in driverfs and devfs broken by previous patch (bug found by Bjoern A. Zeeb (bz@zabbadoz.net))
-
Christer Weinigel authored
This patch adds support for the National Semiconductor SCx200 processor family to Linux 2.5. The patch consists of the following drivers: arch/i386/kernel/scx200.c -- give kernel access to the GPIO pins drivers/chars/scx200_gpio.c -- give userspace access to the GPIO pins drivers/chars/scx200_wdt.c -- watchdog timer driver drivers/i2c/scx200_i2c.c -- use any two GPIO pins as an I2C bus drivers/i2c/scx200_acb.c -- driver for the Access.BUS hardware drivers/mtd/maps/scx200_docflash.c -- driver for a CFI flash connected to the DOCCS pin
-
Petr Vandrovec authored
This patch fixes memory corruption during vfat mount: one byte before mount options is overwritten by ',' since strtok->strsep conversion happened. This patch also fixes another problem introduced by strtok->strsep conversion: VFAT requires that FAT does not modify passed options, but unfortunately FAT driver fails to preserve options string if there is more than one consecutive comma in option string.
-
- 04 Oct, 2002 29 commits
-
-
Linus Torvalds authored
to make it possible to track down.
-
Linus Torvalds authored
Cset exclude: ink@jurassic.park.msu.ru|ChangeSet|20021003201553|58706
-
Trond Myklebust authored
Duh... Even a simple one-liner test can be wrong. The really sad bit is that I made the same mistake 3 weeks ago, fixed it, and then lost track of the fix... To recap fix to fix: A valid end of directory marker has to read (entry[0]==0 && entry[1]!=0). Here is final correct (I hope) patch.
-
Anton Blanchard authored
I think I have found it and it only hits on a 64 bit machine. If the timeout is big enough we still need to initialise timer->entry. Otherwise bad things happen we we hit del_timer.
-
http://linuxusb.bkbits.net/pci-2.5Linus Torvalds authored
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
-
Linus Torvalds authored
-
Greg Kroah-Hartman authored
into kroah.com:/home/greg/linux/BK/pci-2.5
-
Greg Kroah-Hartman authored
-
Linus Torvalds authored
-
Martin Schwidefsky authored
Replace IMMEDIATE_BH bottom half by tasklets in helper functions for console control characters. Fix a race condition and make it look nicer.
-
Martin Schwidefsky authored
Don't create /proc/interrupts on s390.
-
Martin Schwidefsky authored
Remove call to s390_init_machine_check in init/main.c, the new boot code on s390 calls it via arch_initcall.
-
Martin Schwidefsky authored
Rework boot sequence on s390: Traditionally, device detection os s390 is done completely at a _very_ early stage during bootup (from init_irq(), i.e. before memory management or the console are there). This has always been a bad idea, but now it broke even more since the linux driver model requires devices detection to take place after the core_initcalls are done. We now do only a small amount of scanning (probably less in the future) at the early stage, the bulk of it is done from a proper subsys_initcall(). This requires some changes in related areas: - the machine check handler initialization is split in two halves, since we want to catch major machine malfunctions as early as possible, but device machine checks can only be caught after the channel subsystem is up. - some functions that are called from the css initialization made some assumptions of when to use kmalloc or bootmem_alloc, which were broken anyway. We fix this here and hopefully can get rid of bootmem_alloc for the css completely in the future. - the debug logging feature for s390 was not used for functions in the initialization before, since it requires the memory management to be working. Now that we can be sure that it works, some special cases can be removed. Now that these changes are done, a partial implementation of the device model for the channel subsystem is possible, but at this point, none of the device drivers make use of that yet.
-
Martin Schwidefsky authored
Check if defined chpids are available. Some code simplification.
-
Martin Schwidefsky authored
Cleanup s390_process_IRQ a little, the ending_status argument is never really used.
-
Martin Schwidefsky authored
Remove bogus sanity check from {en,dis}able_sync_isc() and really disable all interrupt sub classes except isc 7 in wait_cons_dev.
-
Martin Schwidefsky authored
Add 'signal quiesque' feature to s390 hardware console. A signal quiesce is sent from VM or the service element every time the system should shut down. We receive the quiesce signal and call ctrl_alt_del(). Finally the mainframes have ctrl-alt-del as well :-)
-
Martin Schwidefsky authored
Rewrite s390 ptrace code in a more readable and less buggy way. As a part of this, all psw related definitions are moved into ptrace.h from a number of different locations.
-
Martin Schwidefsky authored
Cleanup load/store of fpu register on s390.
-
Martin Schwidefsky authored
Remove bogus sanity checks and code cleanup.
-
Martin Schwidefsky authored
Make timer interrupt independent from boot cpu and do several ticks in one go if a virtual cpu didn't get an interrupt for a period of time > HZ.
-
Martin Schwidefsky authored
Use diag 0x44 on s390x for spinlocks.
-
Martin Schwidefsky authored
Inline csum_partial for s390, the only reason it was out-of-line previously is that some older compilers could not get the inline version right.
-
Martin Schwidefsky authored
Add support for kernel preemption on s390/s390x.
-
Martin Schwidefsky authored
Use a preprocessed linker script for building vmlinux on s390/s390x.
-
Martin Schwidefsky authored
Fix bug in 31 bit emulation of sys_msgsnd and rename sys32_pread/sys32_pwrite to sys32_pread64/sys32_pwrite64.
-
Martin Schwidefsky authored
Fix broken bitops for unaligned atomic operations on s390.
-
Martin Schwidefsky authored
Replace IMMEDIATE_BH bottom half by tasklets in 3215, ctc and iucv driver.
-
Martin Schwidefsky authored
Remove reference to xpram_release. Correct calls to bi_end_io and bio_io_error.
-