pnfs-obj: pg_test check for max_io_size
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 25 May 2011 18:25:29 +0000 (21:25 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Sun, 29 May 2011 18:03:08 +0000 (21:03 +0300)
commit9342077011d54f42fa1b88b7bc1f7008dcf5fff9
tree88ef803dae5672d8bb40a563a6d2d301ae2e782f
parent5b36c7dc41d87d39e779a84fdc2b44b39bba32ca
pnfs-obj: pg_test check for max_io_size

Implement pg_test vector to test for max IO sizes. We calculate
a max_io_size member only once, and cache it in lseg so to not
do so on every page insert.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
[simplify logic]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
fs/nfs/objlayout/objio_osd.c