nfs: modify pg_test interface to return size_t
authorWeston Andros Adamson <dros@primarydata.com>
Thu, 15 May 2014 15:56:43 +0000 (11:56 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 29 May 2014 15:11:43 +0000 (11:11 -0400)
commitb4fdac1a5150174df0847a45dc6612ce5ce3daeb
tree477f3dc72760a8ff622934723c4a984cd4c9ce5d
parent8c8f1ac109726e4ed44a920f5c962c84610d4a17
nfs: modify pg_test interface to return size_t

This is a step toward allowing pg_test to inform the the
coalescing code to reduce the size of requests so they may fit in
whatever scheme the pg_test callback wants to define.

For now, just return the size of the request if there is space, or 0
if there is not.  This shouldn't change any behavior as it acts
the same as when the pg_test functions returned bool.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/blocklayout.c
fs/nfs/nfs4filelayout.c
fs/nfs/objlayout/objio_osd.c
fs/nfs/pagelist.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h
include/linux/nfs_page.h