diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2017-02-07 14:47:16 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-02-08 23:02:45 +0100 |
commit | 863d7d9c2e0cbbde6cd15f87c4431dd806f2d917 (patch) | |
tree | c99169539a6a1c92201ebd0bec23c9d6cee2e270 /fs/nfs/cache_lib.c | |
parent | sunrpc: error out if register_shrinker fail (diff) | |
download | linux-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.c | 3 |
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) |