Changeset 71092f7 in rtems for cpukit/libblock


Ignore:
Timestamp:
Jul 2, 2012, 2:58:01 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2cc4f3c, d2bb25ae
Parents:
c8a86d4d
git-author:
Sebastian Huber <sebastian.huber@…> (07/02/12 14:58:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/02/12 15:03:28)
Message:

libblock: Fix read-ahead trigger and next update

The previous version was sub-optimal for read-ahead transfer counts of
one.

File:
1 edited

Legend:

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

    rc8a86d4d r71092f7  
    30283028          {
    30293029            transfer_count = max_transfer_count;
    3030             dd->read_ahead.trigger = block + (transfer_count + 1) / 2;
     3030            dd->read_ahead.trigger = block + transfer_count / 2;
    30313031            dd->read_ahead.next = block + transfer_count;
    30323032          }
Note: See TracChangeset for help on using the changeset viewer.