diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2015-11-04 18:20:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-20 01:28:37 +0300 |
commit | 51121b4e0c37a012a909744e9bcd62509b66b17b (patch) | |
tree | e35716c45c980b3e834b93a079aa13362a8df5d2 /drivers/spi | |
parent | 28f946db2752d9681844bce847cebb9c438a33e0 (diff) | |
download | linux-51121b4e0c37a012a909744e9bcd62509b66b17b.tar.xz |
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>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions