NFSv4: encode_attrs should not backfill the bitmap and attribute length
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 17 Jul 2013 21:09:01 +0000 (17:09 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Jul 2013 22:18:53 +0000 (18:18 -0400)
commitd7067b2db78aab1a76f9c443b1fcf81c3e35dd50
tree8fe1427b57d4d605e812d30c6ebb052cdaeb6185
parent7c6d4dca777d6423cb9ccdc019cad94c75adcbe4
NFSv4: encode_attrs should not backfill the bitmap and attribute length

The attribute length is already calculated in advance. There is no
reason why we cannot calculate the bitmap in advance too so that
we don't have to play pointer games.

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