[PATCH] rd.c blocksize fix

From: Alexander Viro (viro@math.psu.edu)
Date: Mon May 06 2002 - 02:03:04 EST


(fallout from blksize_size[] removal)

rd.c depends on exact value of blocksize being set from the very
beginning.

--- drivers/block/rd.c Fri May 3 03:26:05 2002
+++ /tmp/rd.c Mon May 6 03:00:00 2002
@@ -376,6 +376,7 @@
                 rd_bdev[unit] = bdget(kdev_t_to_nr(inode->i_rdev));
                 rd_bdev[unit]->bd_openers++;
                 rd_bdev[unit]->bd_inode->i_mapping->a_ops = &ramdisk_aops;
+ rd_bdev[unit]->bd_block_size = rd_blocksize;
         }
 
         return 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 07 2002 - 22:00:26 EST