]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: tune bdi.ra_pages in accordance with the rsize
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:30:35 +0000 (15:30 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:30:35 +0000 (15:30 -0400)
commitf649ac3e325c3b31fedafb6d5b64a1f6d6d1cfa7
tree6f0303db8a60ce0d6044ab5a48fbf6bd391b7bd4
parenta54316f4018ddbf5c74d1a6cecf1a304575db179
cifs: tune bdi.ra_pages in accordance with the rsize

Tune bdi.ra_pages to be a multiple of the rsize. This prevents the VFS
from asking for pages that require small reads to satisfy.

Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/connect.c