pnfs: allow non page aligned pnfs layout segments
authorWeston Andros Adamson <dros@primarydata.com>
Thu, 15 May 2014 15:56:55 +0000 (11:56 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 29 May 2014 15:11:49 +0000 (11:11 -0400)
commit19b54848fee419f0bb35479e4ea98d9f2b985657
tree979464ece075c8edaf8a9dac88ff9e8904f2ded3
parent5002c58639d41b93e800c8a4b7eca49c40d57822
pnfs: allow non page aligned pnfs layout segments

Remove alignment checks that would revert to MDS and change pg_test
to return the max ammount left in the segment (or other pg_test call)
up to size of passed request, or 0 if no space is left.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c