mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
a09581f294
commit
f2c7ea10f9
2 changed files with 21 additions and 8 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue