summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/export.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-03-28 19:09:35 +0400
committerJ. Bruce Fields <bfields@redhat.com>2012-04-11 17:55:04 -0400
commit83e0ed700d4d2cad2f555ae536fafd531f55b6d0 (patch)
treef8582d3f601b45a82d0a9c904c87bbb192bd7981 /fs/nfsd/export.c
parentf2c7ea10f901b7648eb61f1da7243588351f1dac (diff)
downloadlinux-83e0ed700d4d2cad2f555ae536fafd531f55b6d0.tar.gz
linux-83e0ed700d4d2cad2f555ae536fafd531f55b6d0.tar.bz2
linux-83e0ed700d4d2cad2f555ae536fafd531f55b6d0.zip
nfsd: use hash table from cache detail in nfsd export seq ops
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>
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r--fs/nfsd/export.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index 149532023778..9fe7156f504d 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1035,6 +1035,7 @@ static void *e_start(struct seq_file *m, loff_t *pos)
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--)
@@ -1061,6 +1062,8 @@ static void *e_next(struct seq_file *m, void *p, loff_t *pos)
{
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;