projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net sched: ife action fix late binding
[cascardo/linux.git]
/
fs
/
seq_file.c
diff --git
a/fs/seq_file.c
b/fs/seq_file.c
index
e85664b
..
19f532e
100644
(file)
--- a/
fs/seq_file.c
+++ b/
fs/seq_file.c
@@
-72,9
+72,10
@@
int seq_open(struct file *file, const struct seq_operations *op)
mutex_init(&p->lock);
p->op = op;
mutex_init(&p->lock);
p->op = op;
-#ifdef CONFIG_USER_NS
- p->user_ns = file->f_cred->user_ns;
-#endif
+
+ // No refcounting: the lifetime of 'p' is constrained
+ // to the lifetime of the file.
+ p->file = file;
/*
* Wrappers around seq_open(e.g. swaps_open) need to be
/*
* Wrappers around seq_open(e.g. swaps_open) need to be