Skip to content
Commit 63698e05 authored by Kinglong Mee's avatar Kinglong Mee Committed by Zefan Li
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>
[lizf: Backported to 3.4: there are no n_active and flags in primary_index]
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent 6100bd0a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment