aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/cache_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/cache_lib.c')
-rw-r--r--fs/nfs/cache_lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/cache_lib.c b/fs/nfs/cache_lib.c
index 6de15709d024..2ae676f93e6b 100644
--- a/fs/nfs/cache_lib.c
+++ b/fs/nfs/cache_lib.c
@@ -141,8 +141,7 @@ int nfs_cache_register_net(struct net *net, struct cache_detail *cd)
141 141
142void nfs_cache_unregister_sb(struct super_block *sb, struct cache_detail *cd) 142void nfs_cache_unregister_sb(struct super_block *sb, struct cache_detail *cd)
143{ 143{
144 if (cd->u.pipefs.dir) 144 sunrpc_cache_unregister_pipefs(cd);
145 sunrpc_cache_unregister_pipefs(cd);
146} 145}
147 146
148void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd) 147void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd)