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)
commit66bfaadc3da74fecb4ba8b03f6b81d5f58b031fa
tree6f0303db8a60ce0d6044ab5a48fbf6bd391b7bd4
parent5eba8ab3606621f7e175ae9f521d71f3ac534f82
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