patch-2.4.10 linux/drivers/s390/block/xpram.c
Next file: linux/drivers/s390/char/tuball.c
Previous file: linux/drivers/s390/block/dasd.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Sep 10 12:42:32 2001
- Orig file:
v2.4.9/linux/drivers/s390/block/xpram.c
- Orig date:
Sun Aug 12 13:28:00 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/s390/block/xpram.c linux/drivers/s390/block/xpram.c
@@ -625,8 +625,7 @@
*/
if (!atomic_dec_return(&(dev->usage))) {
/* but flush it right now */
- fsync_dev(inode->i_rdev);
- invalidate_buffers(inode->i_rdev);
+ /* Everything is already flushed by caller -- AV */
}
MOD_DEC_USE_COUNT;
return(0);
@@ -648,14 +647,14 @@
case BLKGETSIZE: /* 0x1260 */
/* Return the device size, expressed in sectors */
- if (!arg) return -EINVAL; /* NULL pointer: not valid */
- err= 0; /* verify_area_20(VERIFY_WRITE, (long *) arg, sizeof(long));
- * if (err) return err;
- */
- put_user ( 1024* xpram_sizes[MINOR(inode->i_rdev)]
+ return put_user( 1024* xpram_sizes[MINOR(inode->i_rdev)]
/ XPRAM_SOFTSECT,
(long *) arg);
- return 0;
+
+ case BLKGETSIZE64:
+ return put_user( (u64)(1024* xpram_sizes[MINOR(inode->i_rdev)]
+ / XPRAM_SOFTSECT) << 9,
+ (u64 *) arg);
case BLKFLSBUF: /* flush, 0x1261 */
fsync_dev(inode->i_rdev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)