mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
9p: don't forget to destroy inode cache if fscache registration fails
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
03da633aa7
commit
8061a6fa56
1 changed files with 4 additions and 3 deletions
|
|
@ -603,10 +603,11 @@ static int v9fs_cache_register(void)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
#ifdef CONFIG_9P_FSCACHE
|
||||
return 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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue