patch-2.3.48 linux/fs/block_dev.c
Next file: linux/fs/buffer.c
Previous file: linux/fs/binfmt_em86.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Feb 26 20:33:04 2000
- Orig file:
v2.3.47/linux/fs/block_dev.c
- Orig date:
Wed Feb 16 17:03:52 2000
diff -u --recursive --new-file v2.3.47/linux/fs/block_dev.c linux/fs/block_dev.c
@@ -193,7 +193,7 @@
if (blk_size[MAJOR(dev)])
size = (loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
else
- size = INT_MAX;
+ size = (loff_t) INT_MAX << BLOCK_SIZE_BITS;
if (offset > size)
left = 0;
@@ -670,10 +670,6 @@
write: block_write,
fsync: block_fsync,
ioctl: blkdev_ioctl,
-};
-
-struct inode_operations blkdev_inode_operations = {
- &def_blk_fops, /* default file operations */
};
const char * bdevname(kdev_t dev)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)