From: Benny Halevy Date: Sun, 22 May 2011 16:47:26 +0000 (+0300) Subject: pnfs: Use byte-range for layoutget X-Git-Tag: v3.0-rc1~2^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb3296eb4636763918edef2d22e45b85b15d4518;p=pandora-kernel.git pnfs: Use byte-range for layoutget Add offset and count parameters to pnfs_update_layout and use them to get the layout in the pageio path. Order cache layout segments in the following order: * offset (ascending) * length (descending) * iomode (RW before READ) Test byte range against the layout segment in use in pnfs_{read,write}_pg_test so not to coalesce pages not using the same layout segment. [fix lseg ordering] [clean up pnfs_find_lseg lseg arg] [remove unnecessary FIXME] [fix ordering in pnfs_insert_layout] [clean up pnfs_insert_layout] Signed-off-by: Benny Halevy --- Reading git-diff-tree failed