- 30 Apr, 2002 4 commits
-
-
Andrew Morton authored
Changes the way in which the readahead code locates the readahead setting for the underlying device. - struct block_device and struct address_space gain a *pointer* to the current readahead tunable. - The tunable lives in the request queue and is altered with the traditional ioctl. - The value gets *copied* into the struct file at open() time. So a fcntl() mode to modify it per-fd is simple. - Filesystems which are not request_queue-backed get the address of the global `default_ra_pages'. If we want, this can become a tunable. - Filesystems are at liberty to alter address_space.ra_pages to point at some other fs-private default at new_inode/read_inode/alloc_inode time. - The ra_pages pointer can become a structure pointer if, at some time in the future, high-level code needs more detailed information about device characteristics. In fact, it'll need to become a struct pointer for use by writeback: my current writeback code has the problem that multiple pdflush threads can get stuck on the same request queue. That's a waste of resources. I currently have a silly flag in the superblock to try to avoid this. The proper way to get this exclusion is for the high-level writeback code to be able to do a test-and-set against a per-request_queue flag. That flag can live in a structure alongside ra_pages, conveniently accessible at the pagemap level. One thing still to-be-done is going into all callers of blk_init_queue and blk_queue_make_request and making sure that they're setting up a sensible default. ATA wants 248 sectors, and floppy drives don't want 128kbytes, I suspect. Later.
-
Andrew Morton authored
This patch provides global accounting of locked and dirty pages. It does this via lightweight per-CPU data structures. The page_cache_size accounting has been changed to use this facility as well. Locked and dirty page accounting is needed for making writeback and throttling decisions. The patch also starts to move code which is related to page->flags out of linux/mm.h and into linux/page-flags.h
-
Andrew Morton authored
Convert ext2 directory handling to not rely on the contents of pages outside i_size. This is because block_write_full_page (which is used for all writeback) zaps the page outside i_size.
-
Andrew Morton authored
Emit a printk when a page allocation fails. Considered useful for diagnosing crashes.
-
- 29 Apr, 2002 2 commits
-
-
Alexander Viro authored
OK, here comes. Patch below is an attempt to do the fastwalk stuff in right way and so far it seems to be working. - dentry leak is plugged - locked/unlocked state of nameidata doesn't depend on history - it depends only on point in code. - LOOKUP_LOCKED is gone. - following mounts and .. doesn't drop dcache_lock - light-weight permission check distinguishes between "don't know" and "permission denied", so we don't call full-blown permission() unless we have to. - code that changes root/pwd holds dcache_lock _and_ write lock on current->fs->lock. I.e. if we hold dcache_lock we can safely access our ->fs->{root,pwd}{,mnt} - __d_lookup() does not increment refcount; callers do dget_locked() if they need it (behaviour of d_lookup() didn't change, obviously). - link_path_walk() logics had been (somewhat) cleaned up.
-
Martin Dalecki authored
- Fix bogus set_multimode() change. I tough I had reverted it before diff-ing. This was causing hangs of /dev/hdparm -m8 /dev/hda and similar commands.
-
- 28 Apr, 2002 34 commits
-
-
Linus Torvalds authored
-
Linus Torvalds authored
-
bk://linuxusb.bkbits.net/linus-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Andreas Dilger authored
The following patch is a _very minor_ cleanup in the ext3 code for ext3_prepare_write(). It simply removes the setting of "handle" from the current transaction handle, because "handle" is actually set again a couple of lines later, where it properly allocates a new transaction handle for this write. The code removed in this patch is probably left over from some development version of ext3 where the transaction handle was started before ext3_prepare_write was called. The only reason I saw this was because I was trying to find where the handle was allocated for an ext3 file write, and at first glance it didn't appear to be allocated anywhere...
-
Linus Torvalds authored
-
http://fbdev.bkbits.net/fbdev-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Ivan Kokshaysky authored
Yes, gdb and strace are broken on alpha since 2.5.6, IIRC. Some necessary 'thread_info' changes still are missing in ptrace.c. Fixed thus.
-
http://lia64.bkbits.net/to-linus-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Chris Wright authored
The patch below fixes sem_exit() so that the BKL is always released.
-
Sebastian Dröge authored
Here's a simple patch to allow the bttv driver to be build with newer binutils...
-
Benjamin LaHaise authored
In conjunction with some of the earlier problems found in /proc code, now it turns out that snprintf doesn't work correctly in the kernel... Without the following patch, snprintf can return lengths greater than the size argument passed. The net effect is that code using the return value from snprintf can still buffer overrun. This is fixed by not updating the pointer in the buffer unless there is actually space.
-
Russell King authored
The following patch drops the above functions from the ARM port; we've already removed them from the syscall table on ARM, so we can safely remove these from the ARM build.
-
bk://linux-ntfs.bkbits.net/ntfs-tng-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Dave Hansen authored
I added ->readdir(), and a new section referring to the sb_op BKL shift as well.
-
Douglas Gilbert authored
Here is some documentation to describe the interface of lower level drivers (e.g. aic7xxx) in the scsi subsystem. The patch is made up of a text file: drivers/scsi/scsi_mid_low_api.txt and some Documentation/DocBook additions to enable html, ps and pdf renderings.
-
Andrew Morton authored
Here's an array-based implementation.
-
Brian Gerst authored
ARM arch
-
Brian Gerst authored
m68k arch
-
Brian Gerst authored
SuperH arch
-
Brian Gerst authored
CRIS and x86-64 arches
-
Brian Gerst authored
The SYMBOL_NAME macro (and variations) have been obsolete since 2.1.0, when the option to compile the kernel in a.out format was removed. This patch starts the process of removing these macros, starting with x86.
-
Dave Jones authored
Originally by Christoph Hellwig back in February. It recieved no objections when posted to l-k & Jens. o remove DEVICE_REQUEST definitions - never used in blk.h itself. o remove DEVICE_ON() - never used at all. o define LOCAL_END_REQUEST when we do not want end_request() instead of other hacks. o remove DEVICE_OFF() - only used in floppy driver, thus one now has a private end_request(). o use private end_request() functions for drivers not providing randomness. o remove TIMEOUT_VALUE - only ever used in hd.c
-
Dave Jones authored
Some that got lost along the way...
-
Dave Jones authored
Uses the error codes, but doesn't include err.h
-
Dave Jones authored
-
Dave Jones authored
Originally from Manfred Spraul. * dynamically grow the LDT Every app that's linked against libpthread right now allocates a full 64 kB LDT, without proper error handling, and always from the vmalloc area
-
Dave Jones authored
- Nuke unnecessary include. - More infortmational debug info
-
Dave Jones authored
Various bits mostly from 2.4 Also fix indentation of various entries to match the rest of the file.
-
Dave Jones authored
Posted multiple times to l-k by Paul Fulghum
-
Dave Jones authored
Posted multiple times to l-k by Paul Fulghum.
-
Dave Jones authored
- Drop Intel P4 bits - Update other parts in line with latest i386 bluesmoke.c
-
Dave Jones authored
Missing loop increment.
-
Dave Jones authored
This device returns a wrong class code which we work around at boot up time.
-
Dave Jones authored
- printk loglevels - request region checks.
-