NFSv4: Simplify the GETATTR attribute length calculation
commit256e48bb473b631fbb5aa03d6ed38c652ad3caa7
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 21 Jun 2012 15:18:13 +0000 (21 11:18 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 28 Jun 2012 21:20:44 +0000 (28 17:20 -0400)
treef5a7ec0824ef09fcae105556ffecdae00c23a509
parent4517d526c8aa31b5c14165ef180cc19518ff0a35
NFSv4: Simplify the GETATTR attribute length calculation

Use the xdr_stream position counter as the basis for the calculation
instead of assuming that we can calculate an offset to the start
of the iovec.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c