An error occurred fetching the project authors.
- 18 Oct, 2002 1 commit
-
-
Dave Jones authored
-
- 15 Oct, 2002 3 commits
-
-
Alexander Viro authored
There we go - now we can put a reference to gendisk into block_device. Which we do in do_open(). Most of the callers of get_gendisk() are simply using bdev->bd_disk now (and most of the put_disk() calls introduced on previous step disappear). We also put that pointer into struct request - ->rq_disk. That allows to get rid of disk_index() kludges in md.c (we simply count relevant IO in the struct gendisk fields) and kill the export of get_gendisk(). Notice that by now we can move _all_ IO counters into gendisk. That will kill a bunch of per-major arrays and more importantly, allow to merge sard in clean way. FWIW, we probably could show them as disk/partitions attributes in driverfs...
-
Alexander Viro authored
guts of blkpg.c and blkdev_ioctl() sanitized up and moved into a new file - drivers/block/ioctl.c. blkpg.c is gone.
-
Alexander Viro authored
allocation of ->part[] moved to alloc_disk(); alloc_disk() got an argument (number of minors expected). Freeing is in put_disk().
-
- 08 Oct, 2002 1 commit
-
-
Alexander Viro authored
cpqarray uses disk_alloc instead of alloc_disk. Same typo is in cciss, rd.c sets ->first_minor to 0 for all units and HD_IRQ definition is needed if CONFIG_BLK_DEV_HD is defined.
-
- 06 Oct, 2002 1 commit
-
-
Alan Cox authored
(From Matthew Wilcox)
-
- 05 Oct, 2002 1 commit
-
-
Alexander Viro authored
-
- 03 Oct, 2002 1 commit
-
-
Alexander Viro authored
-
- 30 Sep, 2002 1 commit
-
-
Alexander Viro authored
char *major_name replaced with char disk_name[16]; All uses of ->major_name replaced with those of ->disk_name and (obviously) simplified big way. Bunch of arrays, kmallocs, etc. is gone.
-
- 22 Sep, 2002 1 commit
-
-
Alexander Viro authored
it is an ex-parrot
-
- 21 Sep, 2002 1 commit
-
-
Alexander Viro authored
rd switched to use of gendisk
-
- 18 Sep, 2002 1 commit
-
-
Jens Axboe authored
Make bio->bi_end_io() take bytes_done and actual error as argument. This enables partial completion of bio's, which is important for latency reasons (bio can be huge, for slow media we want page-by-page completions). I think I got most of the bi_end_io() functions out there, but I might have missed a few. For the record, if you don't care about partial completions and just want to be notified when the entire bio completes, add a if (bio->bi_size) return 1; to the top of your bi_end_io(). It should return 0 on completion. bio_endio() will decrement bio->bi_size appropriately, it's recommended for people to go through that. Otherwise they will have to control BIO_UPTODATE and bi_size decrement themselves, there's really no reason to do that. I've deliberately avoided doing any functional changes to any of the end_io functions, as I think that would only make the patch more complex. It's simple right now, but this being i/o paths I prefer (as usual) to be careful and take small steps. The mpage_end_io_read() do-vecs-at-the-time change can come right after this, for instance.
-
- 08 Sep, 2002 1 commit
-
-
Andrew Morton authored
This patch uses the atomic copy_from_user() facility in generic_file_write(). This required a change in the prepare_write/commit_write API definition. It is no longer the case that these functions will kmap the page for you. If any part of the kernel wants to get at the page in the write path, it now has to kmap it for itself. The best way to do this is with kmap_atomic(KM_USER0). This patch updates all callers. It also converts several places which were unnecessarily using kmap() over to using kmap_atomic(). The reiserfs changes here are Oleg Drokin's revised version. The patch has been tested with loop, ext2, ext3, reiserfs, jfs, minixfs, vfat, iso9660, nfs and the ramdisk driver. I haven't fixed the racy deadlock avoidance thing in generic_file_write() - the case where we take a fault when the source and dest of the copy are both the same pagecache page. There is a printk in there now which will trigger if the page was unexpectedly not present. And guess what? I get 50-100 of them when running `dbench 64' on mem=48m. This deadlock can happen.
-
- 29 Jul, 2002 1 commit
-
-
Adam J. Richter authored
linux-2.5.28/drivers/block_dev.c has a new do_open that broke initial ramdisk support, because it now requires devices that "manually" set bdev->bd_openers to set bdev->bd_inode->i_size as well. The following single line patch, suggested by Russell King, fixes the problem. There does not appear to be anyone acting as maintainer for rd.c, so I posted to lkml yesterday to ask if anyone objected to my submitting the patch to you, and I also emailed the message to Russell King and Al Viro. Nobody has complained. I have been running the patch for almost a day without problems.
-
- 21 Jul, 2002 1 commit
-
-
Alexander Viro authored
blk_ioctl() not exported anymore; calls moved from drivers to block_dev.c.
-
- 18 Jun, 2002 1 commit
-
-
Andrew Morton authored
highmem.h includes bio.h, so just about every compilation unit in the kernel gets to process bio.h. The patch moves the BIO-related functions out of highmem.h and into bio-related headers. The nested include is removed and all files which need to include bio.h now do so.
-
- 11 Jun, 2002 2 commits
-
-
Alexander Viro authored
#define DEVICE_NAME ... removed from the drivers that never use that macro.
-
Alexander Viro authored
monstrous cascade of #ifdefs is gone from blk.h. This is the first step of cleanup - we move #define in question into the code that includes blk.h (i.e. DEVICE_NR, DEVICE_NAME and DEVICE_INTR are explicitly set by drivers).
-
- 04 Jun, 2002 1 commit
-
-
Russell King authored
2.5.20 seems to be incapable of executing binaries in a ramdisk-based root filesystem. The ramdisk in question is an ext2fs, with a 1K block size loaded via the compressed ramdisk loader in do_mounts(). It appears that, in the case of a 1K block sized filesystem, we attempt to read two 512-byte sectors into a BIO vector. The first one is copied into the first 512 bytes. The second sector, however, is copied over the first 512 bytes. Obviously not what we really want. Rev. 2, slightly cleaned up:
-
- 25 May, 2002 1 commit
-
-
Russell King authored
The following allows the ramdisk to work on 2.5.18; maybe we need a comment in do_open() ?
-
- 23 May, 2002 1 commit
-
-
Christoph Hellwig authored
Include buffer_head.h directly in the file in drivers/ that need it (9 files). Note that most of this uses are layering violations that I will address later.
-
- 22 May, 2002 1 commit
-
-
Alexander Viro authored
Unlike other drivers, rd.c wants block size to be set once an forever (for everybody else setting block size as high as possible and letting filesystems change it with set_blocksize() is OK; rd.c treats invalidate_buffers() as "kill the ramdisk contents".
-
- 19 May, 2002 1 commit
-
-
Arnaldo Carvalho de Melo authored
- fix copy_{to,from}_user error handling, thanks to Rusty for pointing this out on lkml
-
- 01 May, 2002 1 commit
-
-
Alexander Viro authored
- put block size in bdev->bd_block_size, make do_open() and check_partition() to set it (see above), switch set_blocksize() and block_size() to use of ->bd_block_size. Remove manipulations with blksize_size[] from drivers, remove blksize_size[] itself.
-
- 30 Apr, 2002 1 commit
-
-
Andrew Morton authored
page->flags cleanup. Moves the definitions of the page->flags bits and all the PageFoo macros into linux/page-flags.h. That file is currently included from mm.h, but the stage is set to remove that and include page-flags.h direct in all .c files which require that. (120 of them). The patch also makes all the page flag macros and functions consistent: For PG_foo, the following functions are defined: SetPageFoo ClearPageFoo TestSetPageFoo TestClearPageFoo PageFoo and that's it. - Page_Uptodate is renamed to PageUptodate - LockPage is removed. All users updated to use SetPageLocked - UnlockPage is removed. All callers updated to use unlock_page(). it's a real function - there's no need to hide that fact. - PageTestandClearReferenced renamed to TestClearPageReferenced - PageSetSlab renamed to SetPageSlab - __SetPageReserved is removed. It's an infinitesimally small microoptimisation, and is inconsistent. - TryLockPage is renamed to TestSetPageLocked - PageSwapCache() is renamed to page_swap_cache(), so it doesn't pretend to be a page->flags bit test.
-
- 25 Apr, 2002 1 commit
-
-
Alexander Viro authored
- *NOW* all places that (re)assign ->bi_dev have relevant struct block_device *. ->bi_bdev (struct block_device * equivalent of ->bi_dev) introduced, ->bi_dev removed, users updated.
-
- 10 Apr, 2002 1 commit
-
-
Andrew Morton authored
Before the mempool was added, the VM was getting many, many 0-order allocation failures due to the atomic ratnode allocations inside swap_out. That monster mempool is doing its job - drove a 256meg machine a gigabyte into swap with no ratnode allocation failures at all. So we do need to trim that pool a bit, and also handle the case where swap_out fails, and not just keep pointlessly calling it.
-
- 08 Apr, 2002 1 commit
-
-
Andries E. Brouwer authored
It is a step on the road to removal of the arrays. It also solves other things, like the fact that Linux is unable to read the last sector of a disk or partition with an odd number of sectors.
-
- 02 Apr, 2002 1 commit
-
-
Alexander Viro authored
Bunch of places converted from fsync_dev/invalidate_buffers to fsync_bdev/invalidate_bdev.
-
- 05 Mar, 2002 1 commit
-
-
Alexander Viro authored
-
- 21 Feb, 2002 1 commit
-
-
Linus Torvalds authored
-
- 05 Feb, 2002 9 commits
-
-
Linus Torvalds authored
- Greg KH: USB updates - various: kdev_t updates - Al Viro: more bread()/filesystem cleanups
-
Linus Torvalds authored
- Jeff Garzik: fix up loop and md for struct kdev_t typechecking - Jeff Garzik: improved old-tulip network driver - Arnaldo: more scsi driver bio updates - Kai Germaschewski: ISDN updates - various: kdev_t updates
-
Linus Torvalds authored
- me: revert the "kill(-1..)" change. POSIX isn't that clear on the issue anyway, and the new behaviour breaks things. - Jens Axboe: more bio updates - Al Viro: rd_load cleanups. hpfs mount fix, mount cleanups - Ingo Molnar: more raid updates - Jakub Jelinek: fix Linux/x86 confusion about arg passing of "save_v86_state" and "do_signal" - Trond Myklebust: fix NFS client race conditions
-
Linus Torvalds authored
- Jeff Garzik: no longer support old cards in tulip driver (see separate driver for old tulip chips) - Pat Mochel: driverfs/device model documentation - Ballabio Dario: update eata driver to new IO locking - Ingo Molnar: raid resync with new bio structures (much more efficient) and mempool_resize() - Jens Axboe: bio queue locking
-
Linus Torvalds authored
- Jens Axboe: more bio stuff - Coda compile fixes - Nathan Laredo: stradis driver update
-
Linus Torvalds authored
- Patrick Mochel: driver model infrastructure, part 1 - Jens Axboe: more bio fixes, cleanups - Andrew Morton: release locking fixes - Al Viro: superblock/mount handling - Kai Germaschewski: AVM Fritz!Card ISDN driver - Christoph Hellwig: make cramfs SMP-safe.
-
Linus Torvalds authored
- Jens Axboe: fix up bio highmem breakage, more cleanups - Greg KH: USB update
-
Linus Torvalds authored
- Al Viro: more superblock cleanups - Jens Axboe: more patches for new block IO layer - Christoph Hellwig: get rid of the old, long- deprecated SCSI error handling
-
Linus Torvalds authored
- Greg KH: USB update - Richard Gooch: refcounting for devfs - Jens Axboe: start of new block IO layer
-