projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03da633
)
9p: don't forget to destroy inode cache if fscache registration fails
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 17 Sep 2013 12:10:18 +0000
(08:10 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 18 Sep 2013 02:31:01 +0000
(22:31 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/9p/v9fs.c
patch
|
blob
|
history
diff --git
a/fs/9p/v9fs.c
b/fs/9p/v9fs.c
index
58e6cbc
..
08f2e1e
100644
(file)
--- a/
fs/9p/v9fs.c
+++ b/
fs/9p/v9fs.c
@@
-603,10
+603,11
@@
static int v9fs_cache_register(void)
if (ret < 0)
return ret;
#ifdef CONFIG_9P_FSCACHE
- ret
urn
fscache_register_netfs(&v9fs_cache_netfs);
-#else
-
return ret
;
+ ret
=
fscache_register_netfs(&v9fs_cache_netfs);
+ if (ret < 0)
+
v9fs_destroy_inode_cache()
;
#endif
+ return ret;
}
static void v9fs_cache_unregister(void)