Hard-code is redundant and will prevent from making caches per net ns.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
unsigned hash, export;
struct cache_head *ch;
struct cache_detail *cd = m->private;
+ struct cache_head **export_table = cd->hash_table;
read_lock(&cd->hash_lock);
if (!n--)
{
struct cache_head *ch = p;
int hash = (*pos >> 32);
+ struct cache_detail *cd = m->private;
+ struct cache_head **export_table = cd->hash_table;
if (p == SEQ_START_TOKEN)
hash = 0;