Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.48 /fs/block_dev.c

Filename:/fs/block_dev.c
Lines Added:1
Lines Deleted:5
Also changed in: (Previous) 2.3.46  2.3.43  2.3.41  2.3.39  2.3.38  2.3.37 
(Following) 2.3.49  2.3.50  2.3.99-pre6  2.5.48  2.5.49  2.5.50 

Location
[  2.3.48
  [  fs
     o  block_dev.c

Patch

diff -u --recursive --new-file v2.3.47/linux/fs/block_dev.c linux/fs/block_dev.c
--- v2.3.47/linux/fs/block_dev.c   Wed Feb 16 17:03:52 2000
+++ linux/fs/block_dev.c   Sat Feb 26 20:33:04 2000
@@ -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)


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.