pnfs/flexfiles: add ff_layout_prepare_layoutstats
commitad4dc53e6496ba0b3c18aeda6f3367d9800b6ebf
authorPeng Tao <tao.peng@primarydata.com>
Tue, 23 Jun 2015 11:52:01 +0000 (23 19:52 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 24 Jun 2015 14:53:11 +0000 (24 10:53 -0400)
tree911cb79b3c357f8058df5af8288039042f8c82a7
parentd983803d3818a7aef3200147c72a45f573d84537
pnfs/flexfiles: add ff_layout_prepare_layoutstats

It fills in the generic part of LAYOUTSTATS call. One thing to note
is that we don't really track if IO is continuous or not. So just fake
to use the completed bytes for it.

Still missing flexfiles specific part, which will be included in the next patch.

Reviewed-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c