summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/cifs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 967663ad63a0..a592fdf04313 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -4456,6 +4456,7 @@ static void cifs_readahead(struct readahead_control *ractl)
* by the cache.
*/
struct folio *folio = readahead_folio(ractl);
+
last_batch_size = folio_nr_pages(folio);
if (cifs_readpage_from_fscache(ractl->mapping->host,
&folio->page) < 0) {