summaryrefslogtreecommitdiffstats
path: root/fs/nfs/cache_lib.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-02-07 14:47:16 +0100
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-02-08 23:02:45 +0100
commit863d7d9c2e0cbbde6cd15f87c4431dd806f2d917 (patch)
treec99169539a6a1c92201ebd0bec23c9d6cee2e270 /fs/nfs/cache_lib.c
parentsunrpc: error out if register_shrinker fail (diff)
downloadlinux-863d7d9c2e0cbbde6cd15f87c4431dd806f2d917.tar.xz
linux-863d7d9c2e0cbbde6cd15f87c4431dd806f2d917.zip
sunrpc/nfs: cleanup procfs/pipefs entry in cache_detail
Record flush/channel/content entries is useless, remove them. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
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)
void nfs_cache_unregister_sb(struct super_block *sb, struct cache_detail *cd)
{
- if (cd->u.pipefs.dir)
- sunrpc_cache_unregister_pipefs(cd);
+ sunrpc_cache_unregister_pipefs(cd);
}
void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd)