diff options
| author | Russell King <rmk@arm.linux.org.uk> | 2002-05-25 03:17:28 -0700 |
|---|---|---|
| committer | Russell King <rmk@arm.linux.org.uk> | 2002-05-25 03:17:28 -0700 |
| commit | 8e76c34e97246910d5d0ec0e223b97f045c07237 (patch) | |
| tree | 158383707c301014e121647782db7ad5ba37d4d7 | |
| parent | 79980093177a166328fa77a951217b999b3e8a75 (diff) | |
[PATCH] 2.5.18: Fix ramdisk
The following allows the ramdisk to work on 2.5.18; maybe we need a
comment in do_open() ?
| -rw-r--r-- | drivers/block/rd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index 4010eaa73706..da9d26130d71 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c @@ -379,6 +379,7 @@ static int rd_open(struct inode * inode, struct file * filp) rd_bdev[unit]->bd_openers++; rd_bdev[unit]->bd_block_size = rd_blocksize; rd_bdev[unit]->bd_inode->i_mapping->a_ops = &ramdisk_aops; + rd_bdev[unit]->bd_queue = &blk_dev[MAJOR_NR].request_queue; } return 0; |
