Staging: lustre: rw: Remove wrapper stride_page_count
Remove the function stride_page_count() and replace its calls with the function stride_pg_count() that it wraps. Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ecb95a027b
commit
464e5947d1
1 changed files with 3 additions and 9 deletions
|
@ -880,14 +880,6 @@ static void ras_update_stride_detector(struct ll_readahead_state *ras,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long
|
|
||||||
stride_page_count(struct ll_readahead_state *ras, unsigned long len)
|
|
||||||
{
|
|
||||||
return stride_pg_count(ras->ras_stride_offset, ras->ras_stride_length,
|
|
||||||
ras->ras_stride_pages, ras->ras_stride_offset,
|
|
||||||
len);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Stride Read-ahead window will be increased inc_len according to
|
/* Stride Read-ahead window will be increased inc_len according to
|
||||||
* stride I/O pattern */
|
* stride I/O pattern */
|
||||||
static void ras_stride_increase_window(struct ll_readahead_state *ras,
|
static void ras_stride_increase_window(struct ll_readahead_state *ras,
|
||||||
|
@ -921,7 +913,9 @@ static void ras_stride_increase_window(struct ll_readahead_state *ras,
|
||||||
|
|
||||||
window_len += step * ras->ras_stride_length + left;
|
window_len += step * ras->ras_stride_length + left;
|
||||||
|
|
||||||
if (stride_page_count(ras, window_len) <= ra->ra_max_pages_per_file)
|
if (stride_pg_count(ras->ras_stride_offset, ras->ras_stride_length,
|
||||||
|
ras->ras_stride_pages, ras->ras_stride_offset,
|
||||||
|
window_len) <= ra->ra_max_pages_per_file)
|
||||||
ras->ras_window_len = window_len;
|
ras->ras_window_len = window_len;
|
||||||
|
|
||||||
RAS_CDEBUG(ras);
|
RAS_CDEBUG(ras);
|
||||||
|
|
Loading…
Reference in a new issue