Changeset 2eb89ad in rtems for cpukit/libblock/src/ramdisk.c


Ignore:
Timestamp:
Aug 2, 2008, 6:23:45 AM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f031251c
Parents:
799ef3b
Message:

2008-08-02 Chris Johns (chrisj@…>

  • libblock/include/rtems/blkdev.h: Remove count and start from rtems_blkdev_request. Add RTEMS_BLKDEV_START_BLOCK macro.
  • libblock/src/bdbuf.c: Add read ahead blocks always consecutive comment. Change count to bufnum and remove start references. Sort the transfer list so blocks are consecutive where possible.
  • libblock/src/blkdev.c, libblock/src/nvdisk.c, libblock/src/ramdisk.c: Change count to bufnum and remove start references.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/ramdisk.c

    r799ef3b r2eb89ad  
    100100#endif
    101101
    102     remains = rd->block_size * req->count;
     102    remains = rd->block_size * req->bufnum;
    103103    sg = req->bufs;
    104104    for (i = 0; (remains > 0) && (i < req->bufnum); i++, sg++)
     
    138138    rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d remains=%d",
    139139                          req->bufs[0].block, req->bufnum,
    140                           rd->block_size * req->count);
    141 #endif
    142     remains = rd->block_size * req->count;
     140                          rd->block_size * req->bufnum);
     141#endif
     142    remains = rd->block_size * req->bufnum;
    143143    sg = req->bufs;
    144144    for (i = 0; (remains > 0) && (i < req->bufnum); i++, sg++)
Note: See TracChangeset for help on using the changeset viewer.