]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix the readahead conversion to manage the batch when reading from cache
authorDavid Howells <dhowells@redhat.com>
Mon, 31 Jan 2022 17:54:43 +0000 (17:54 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 1 Feb 2022 16:36:22 +0000 (10:36 -0600)
commit24d7a32382af518d50b3f24563e3059b6191b231
treeec458be1b9b601f56cac5125be378809c2966d3b
parentc29d5b413824a6a0ed9fca9f9f46a0331ff14512
cifs: Fix the readahead conversion to manage the batch when reading from cache

Fix the readahead conversion to correctly manage the last batch skipping
when reading from cache.  This involves a readahead batch of one page or
one folio, so set the batch size according to the number of constituent
pages (should be 1 for a filesystem that doesn't do multipage folios yet).

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <smfrench@gmail.com>
Reviewed-by: Rohith Surabattula <rohiths.msft@gmail.com>
Reviewed-by: Shyam Prasad N <nspmangalore@gmail.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c