- 24 Apr, 2003 21 commits
-
-
Alexander Viro authored
* bogus calls of invalidate_buffers() gone from floppy_open() * invalidate_buffers() killed. * new helper - __invalidate_device(bdev, do_sync). invalidate_device() is calling it. * fixed races between floppy_open()/floppy_open and floppy_open()/set_geometry(): a) floppy_open()/floppy_release() is done under a semaphore. That closes the races between simultaneous open() on /dev/fd0foo and /dev/fd0bar. b) pointer to struct block_device is kept as long as floppy is opened (per-drive, non-NULL when number of openers is non-zero, does not contribute to block_device refcount). c) set_geometry() grabs the same semaphore and invalidates the devices directly instead of messing with setting fake "it had changed" and calling __check_disk_change(). * __check_disk_change() killed - no remaining callers * full_check_disk_change() killed - ditto.
-
Alexander Viro authored
capifs switched to ramfs-style tree and cleaned up; it's the same changes that had been done its prototype (devpts) + stuff needed to deal with unload (devpts is non-modular and always internally mounted).
-
Alexander Viro authored
fbdev.node converted from kdev_t to int - all of its users have register_framebuffer() which sets .node to mk_kdev(FB_MAJOR, index) already called and all of them start with applying minor(). IOW, what they actually want is framebuffer number. * type of ->node changed to int * register_framebuffer() sets it to index instead of mk_kdev(...) * users converted from minor(foo.node) to foo.node * useless assignments (typically to NODEV) removed - we never look at that field before register_framebuffer() overwrites it and thus any assignments prior to register_framebuffer() call are dead code.
-
Alexander Viro authored
Console drivers cleanup. In current tree interaction between console and tty layer sits in the ->device() method of struct console. It takes a pointer to console and returns device number of its tty device. open(2) on /dev/console goes through the list of registered consoles, picks the first one that has ->device() and remaps the device number to console->device(console). Then it proceeds with normal opening of tty. This is the only caller of ->device(). Cleanup: let ->device() return a pair (pointer to tty_driver, index of tty in question) instead of device number. Note that a) the first thing tty_open() does with remapped device number is conversion to such pair. b) console driver _knows_ which tty_driver we want - one that implements tty interface to the same physical device (i.e. the part of the same driver). c) current code expects the result of ->device() to be a device number of tty device - anything else is immediate -ENODEV from tty_open(); might as well have NULL ->device in that driver. Console drivers converted, (the only) caller updated.
-
Alexander Viro authored
Preparation to console->device() cleanup: serial drivers converted to common helper for their ->device() methods.
-
Andi Kleen authored
Don't disable the Northbridge Machine Check. Use the unrolled "INTEL_USERCOPY" too.
-
bk://kernel.bkbits.net/gregkh/linux/i2c-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Greg Kroah-Hartman authored
into kroah.com:/home/greg/linux/BK/i2c-2.5
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
into kroah.com:/home/greg/linux/BK/gregkh-2.5
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
David S. Miller authored
-
David S. Miller authored
into nuts.ninka.net:/home/davem/src/BK/net-2.5
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Christoph Hellwig authored
Linus, could you please apply this patch so all thos poor devfs users get their disks back?
-
Bartlomiej Zolnierkiewicz authored
The patch is obviously correct and has been floating on lkml for some time. From Manfred Spraul: "My init_irq cleanup introduced a bug: on error, the function must return 1."
-
Florin Iucha authored
-
- 23 Apr, 2003 19 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Andrew Morton authored
Looks like my finger fell off the control key..
-
Andrew Morton authored
Fix some warnings from the new code-patching stuff.
-
Andrew Morton authored
- Fix printk bug in the diagnostic code. - If an error occurs, print the address of all the offending action handlers. Also the symbol name if CONFIG_KALLSYMS.
-
Christoph Hellwig authored
The invalidate_buffers in ->release is wrong, get a reference to the discipline in the beginning of ->open.
-
Christoph Hellwig authored
This one probably crept in during an ide merge from 2.4..
-
Christoph Hellwig authored
It looks like no one even tried to use it on 2.5..
-
Christoph Hellwig authored
Return an error code instead of a devfs_handle_t. The handle isn't useful for anything and the !CONFIG_DEVFS_FS stub in fact returned NULL which made it entirely useless. Thus only one driver is actually checking the retval in the current tree..
-
Christoph Hellwig authored
Now that devfs_handle_t is gone from all structs there is no reason to include it in headers. Fix the fallout by including previously implicit headers and fixing the drivers that didn't include devfs_fs_kernel.h explicitly.
-
Christoph Hellwig authored
They are obsfucating aliases for SetPageReserved/ClearPageReserved. And once they're gone we can nuke <linux/wrapper.h>
-
Christoph Hellwig authored
And uninline end_request - it's calling to many functions to be useful inline.
-
Christoph Hellwig authored
They don't have any code in common, so the initrd support can go into a separate file and not require ramdisk support. Lots of ifdefs gone and smaller kernel images for initrd users.
-
Linus Torvalds authored
not be marked __init. Noted by Petr Vandrovec
-
Alexander Viro authored
* we allow tty_driver to cover more than 256 devices * pty.c cleaned up - now we only one driver for UNIX98 masters and only one driver for UNIX98 slaves, so a lot of ugliness can be killed. * get_tty_driver() became an analog of get_gendisk() - it does a lookup by device number and gives (pointer to tty_driver,index). * registration/unregistration of tty_driver updated * /proc/tty/drivers code updated (now one structure can be responsible for several lines)
-
Alexander Viro authored
tty->device switched to dev_t There are very few uses of tty->device left by now; most of them actually want dev_t (process accounting, proc/<pid>/stat, several ioctls, slip.c logics, etc.) and the rest will go away shortly.
-
Alexander Viro authored
Preparations to cleanup: * call of get_tty_driver() moved from init_dev() to its callers * instead of kdev_t dev we pass struct tty_struct *driver and int index
-
Alexander Viro authored
* drivers/char/rio/* supports up to 4 boards, each with up to 128 lines. It used to share termios for 1st/3rd and 2nd/4th boards, Fixed. * cleanups and kdev_t removals - we pass tty instead of tty->device in a couple of helper functions and instead of comparisons on major(tty->device) we check where does tty->driver point to.
-
Alexander Viro authored
* generic_serial.c typo fix (->driver used instead of correct ->driver_data) * tubio cleaned up
-