]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
FS-Cache: Don't override netfs's primary_index if registering failed
authorKinglong Mee <kinglongmee@gmail.com>
Wed, 4 Nov 2015 15:20:24 +0000 (15:20 +0000)
committerZefan Li <lizefan@huawei.com>
Wed, 26 Oct 2016 15:15:24 +0000 (23:15 +0800)
commit63698e052d6b5c03152644d7d7c80f2df00100dd
treead895f0d3c174e06ef53831f8fb709c57f12eb12
parent6100bd0a32642e6479c14a26da9e003da8641c0b
FS-Cache: Don't override netfs's primary_index if registering failed

commit b130ed5998e62879a66bad08931a2b5e832da95c upstream.

Only override netfs->primary_index when registering success.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[lizf: Backported to 3.4: there are no n_active and flags in primary_index]
Signed-off-by: Zefan Li <lizefan@huawei.com>
fs/fscache/netfs.c