FS-Cache: Initialise stores_lock in netfs cookie
authorDavid Howells <dhowells@redhat.com>
Wed, 24 May 2017 01:54:06 +0000 (21:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:52 +0000 (06:41 +0200)
commit0542f979124662c219e0c8c66f6ad1e784bf20dc
tree8f090e087879eb17a954260f6b5e856f561ce6ad
parent34f1a4626badd6d88f07f222378ba304330be717
FS-Cache: Initialise stores_lock in netfs cookie

[ Upstream commit 62deb8187d116581c88c69a2dd9b5c16588545d4 ]

Initialise the stores_lock in fscache netfs cookies.  Technically, it
shouldn't be necessary, since the netfs cookie is an index and stores no
data, but initialising it anyway adds insignificant overhead.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fscache/netfs.c