Some of the basic readahead state controlling functions
don't dump the readahead state.
Fix that.
Test-Parameters: trivial
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ia36a8437d1877a31bfc18c1b6a4170f31383ae66
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/45656
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
bool stride_detect = false;
pgoff_t index = pos >> PAGE_SHIFT;
+ RAS_CDEBUG(ras);
/*
* Reset the read-ahead window in two cases. First when the app seeks
* or reads to some other part of the file. Secondly if we get a
}
ras->ras_last_read_end_bytes = pos + bytes - 1;
+ RAS_CDEBUG(ras);
}
void ll_ras_enter(struct file *f, loff_t pos, size_t bytes)
ENTRY;
spin_lock(&ras->ras_lock);
+ RAS_CDEBUG(ras);
+
if (!hit)
CDEBUG(D_READA|D_IOTRACE, DFID " pages at %lu miss.\n",
PFID(ll_inode2fid(inode)), index);
EXIT;
out_unlock:
+ RAS_CDEBUG(ras);
spin_unlock(&ras->ras_lock);
}