pnfs/blocklayout: calculate layoutupdate size correctly
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Aug 2015 16:40:57 +0000 (18:40 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 17 Aug 2015 18:22:49 +0000 (13:22 -0500)
commit29662fa646b41492a9c298a83399126f94847e93
tree3c8331d92a6c015c71eff84c92d10b0ada441b5a
parent18e3b739fdc826481c6a1335ce0c5b19b3d415da
pnfs/blocklayout: calculate layoutupdate size correctly

We need to include the first u32 for the number of entries.  Add a helper
for the calculation instead of opencoding it so that it's in one place.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/extent_tree.c