diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-03-28 19:09:29 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-04-11 17:55:03 -0400 |
commit | f2c7ea10f901b7648eb61f1da7243588351f1dac (patch) | |
tree | 26dd9756b573c3eb2a46f51b3e4d9fbfd2f19769 /fs/nfsd/nfsctl.c | |
parent | a09581f29434ae67f8fc6ae487e4f30a7f0d019f (diff) | |
download | blackbird-obmc-linux-f2c7ea10f901b7648eb61f1da7243588351f1dac.tar.gz blackbird-obmc-linux-f2c7ea10f901b7648eb61f1da7243588351f1dac.zip |
nfsd: pass svc_export_cache pointer as private data to "exports" seq file ops
Global svc_export_cache cache is going to be replaced with per-net instance. So
prepare the ground for it.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 2c53be6d3579..ae19293e68df 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -127,7 +127,16 @@ static const struct file_operations transaction_ops = { static int exports_open(struct inode *inode, struct file *file) { - return seq_open(file, &nfs_exports_op); + int err; + struct seq_file *seq; + + err = seq_open(file, &nfs_exports_op); + if (err) + return err; + + seq = file->private_data; + seq->private = &svc_export_cache; + return 0; } static const struct file_operations exports_operations = { |