NFS: Fabricate fscache server index key correctly
authorDavid Howells <dhowells@redhat.com>
Thu, 25 Sep 2014 13:34:41 +0000 (14:34 +0100)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 26 Sep 2014 01:25:18 +0000 (21:25 -0400)
commitf3f760314afcb8522d2349b970b065589c5c8e48
treef99b4d42abdd17d1761b77d108b3621bd0603f52
parent2aca5b869ace67a63aab895659e5dc14c33a4d6e
NFS: Fabricate fscache server index key correctly

When fabricating a server index key for fscache, we should clear the index key
buffer before starting to fill it in, not in the middle.

Reported-by: James Pearson <james-p@moving-picture.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/fscache-index.c