NFSv4.1: define nfs_generic_pg_test
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 29 May 2011 08:45:39 +0000 (11:45 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Sun, 29 May 2011 18:02:42 +0000 (21:02 +0300)
commit5b36c7dc41d87d39e779a84fdc2b44b39bba32ca
tree4b83c833021014fd51fcffbff88eea8069cd9cff
parent89a58e32d9105c01022a757fb32ddc3b51bf0025
NFSv4.1: define nfs_generic_pg_test

By default, unless pnfs is used coalesce pages until pg_bsize
(rsize or wsize) is reached.

pnfs layout drivers define their own pg_test methods that use
pnfs_generic_pg_test and need to define their own I/O size
limits (e.g. based on the file stripe size).

[Move a check from nfs_pageio_do_add_request to nfs_generic_pg_test]
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
fs/nfs/pagelist.c