Commit 8f2746bb authored by Kinglong Mee's avatar Kinglong Mee Committed by Ben Hutchings
Browse files

FS-Cache: Don't override netfs's primary_index if registering failed



commit b130ed59 upstream.

Only override netfs->primary_index when registering success.

Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
[bwh: Backported to 3.2: no n_active or flags fields in fscache_cookie]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent bdb28a40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment