android_kernel_samsung_msm8976/fs/fscache
Kinglong Mee 669e0b00cb FS-Cache: Increase reference of parent after registering, netfs success
commit 86108c2e34a26e4bec3c6ddb23390bf8cedcf391 upstream.

If netfs exist, fscache should not increase the reference of parent's
usage and n_children, otherwise, never be decreased.

v2: thanks David's suggest,
 move increasing reference of parent if success
 use kmem_cache_free() freeing primary_index directly

v3: don't move "netfs->primary_index->parent = &fscache_fsdef_index;"

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-19 14:22:41 -08:00
..
Kconfig
Makefile
cache.c FS-Cache: Limit the number of I/O error reports for a cache 2012-12-20 22:10:44 +00:00
cookie.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
fsdef.c
histogram.c
internal.h FS-Cache: Clear remaining page count on retrieval cancellation 2012-12-20 22:35:15 +00:00
main.c
netfs.c FS-Cache: Increase reference of parent after registering, netfs success 2016-02-19 14:22:41 -08:00
object-list.c FS-Cache: Don't mask off the object event mask when printing it 2012-12-20 22:08:53 +00:00
object.c FS-Cache: Add transition to handle invalidate immediately after lookup 2012-12-20 22:19:22 +00:00
operation.c FS-Cache: Clear remaining page count on retrieval cancellation 2012-12-20 22:35:15 +00:00
page.c FS-Cache: Clear remaining page count on retrieval cancellation 2012-12-20 22:35:15 +00:00
proc.c
stats.c fs/fscache/stats.c: fix memory leak 2013-04-29 15:54:27 -07:00