Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f50752ea
Commit
f50752ea
authored
Apr 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch all procfs directories ->iterate_shared()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
76aab3ab
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
20 deletions
+21
-20
fs/proc/base.c
fs/proc/base.c
+10
-10
fs/proc/fd.c
fs/proc/fd.c
+4
-4
fs/proc/generic.c
fs/proc/generic.c
+1
-1
fs/proc/namespaces.c
fs/proc/namespaces.c
+2
-1
fs/proc/proc_net.c
fs/proc/proc_net.c
+1
-1
fs/proc/proc_sysctl.c
fs/proc/proc_sysctl.c
+1
-1
fs/proc/root.c
fs/proc/root.c
+2
-2
No files found.
fs/proc/base.c
View file @
f50752ea
...
...
@@ -2159,8 +2159,8 @@ proc_map_files_readdir(struct file *file, struct dir_context *ctx)
static
const
struct
file_operations
proc_map_files_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_map_files_readdir
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_map_files_readdir
,
.
llseek
=
generic_file
_llseek
,
};
#ifdef CONFIG_CHECKPOINT_RESTORE
...
...
@@ -2507,8 +2507,8 @@ static int proc_attr_dir_readdir(struct file *file, struct dir_context *ctx)
static
const
struct
file_operations
proc_attr_dir_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_attr_dir_readdir
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_attr_dir_readdir
,
.
llseek
=
generic_file
_llseek
,
};
static
struct
dentry
*
proc_attr_dir_lookup
(
struct
inode
*
dir
,
...
...
@@ -2915,8 +2915,8 @@ static int proc_tgid_base_readdir(struct file *file, struct dir_context *ctx)
static
const
struct
file_operations
proc_tgid_base_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_tgid_base_readdir
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_tgid_base_readdir
,
.
llseek
=
generic_file
_llseek
,
};
static
struct
dentry
*
proc_tgid_base_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
unsigned
int
flags
)
...
...
@@ -3263,8 +3263,8 @@ static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *den
static
const
struct
file_operations
proc_tid_base_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_tid_base_readdir
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_tid_base_readdir
,
.
llseek
=
generic_file
_llseek
,
};
static
const
struct
inode_operations
proc_tid_base_inode_operations
=
{
...
...
@@ -3474,6 +3474,6 @@ static const struct inode_operations proc_task_inode_operations = {
static
const
struct
file_operations
proc_task_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_task_readdir
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_task_readdir
,
.
llseek
=
generic_file
_llseek
,
};
fs/proc/fd.c
View file @
f50752ea
...
...
@@ -276,8 +276,8 @@ static int proc_readfd(struct file *file, struct dir_context *ctx)
const
struct
file_operations
proc_fd_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_readfd
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_readfd
,
.
llseek
=
generic_file
_llseek
,
};
static
struct
dentry
*
proc_lookupfd
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
...
...
@@ -361,6 +361,6 @@ const struct inode_operations proc_fdinfo_inode_operations = {
const
struct
file_operations
proc_fdinfo_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_readfdinfo
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_readfdinfo
,
.
llseek
=
generic_file
_llseek
,
};
fs/proc/generic.c
View file @
f50752ea
...
...
@@ -318,7 +318,7 @@ int proc_readdir(struct file *file, struct dir_context *ctx)
static
const
struct
file_operations
proc_dir_operations
=
{
.
llseek
=
generic_file_llseek
,
.
read
=
generic_read_dir
,
.
iterate
=
proc_readdir
,
.
iterate
_shared
=
proc_readdir
,
};
/*
...
...
fs/proc/namespaces.c
View file @
f50752ea
...
...
@@ -139,7 +139,8 @@ static int proc_ns_dir_readdir(struct file *file, struct dir_context *ctx)
const
struct
file_operations
proc_ns_dir_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_ns_dir_readdir
,
.
iterate_shared
=
proc_ns_dir_readdir
,
.
llseek
=
generic_file_llseek
,
};
static
struct
dentry
*
proc_ns_dir_lookup
(
struct
inode
*
dir
,
...
...
fs/proc/proc_net.c
View file @
f50752ea
...
...
@@ -179,7 +179,7 @@ static int proc_tgid_net_readdir(struct file *file, struct dir_context *ctx)
const
struct
file_operations
proc_net_operations
=
{
.
llseek
=
generic_file_llseek
,
.
read
=
generic_read_dir
,
.
iterate
=
proc_tgid_net_readdir
,
.
iterate
_shared
=
proc_tgid_net_readdir
,
};
static
__net_init
int
proc_net_ns_init
(
struct
net
*
net
)
...
...
fs/proc/proc_sysctl.c
View file @
f50752ea
...
...
@@ -790,7 +790,7 @@ static const struct file_operations proc_sys_file_operations = {
static
const
struct
file_operations
proc_sys_dir_file_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_sys_readdir
,
.
iterate
_shared
=
proc_sys_readdir
,
.
llseek
=
generic_file_llseek
,
};
...
...
fs/proc/root.c
View file @
f50752ea
...
...
@@ -226,8 +226,8 @@ static int proc_root_readdir(struct file *file, struct dir_context *ctx)
*/
static
const
struct
file_operations
proc_root_operations
=
{
.
read
=
generic_read_dir
,
.
iterate
=
proc_root_readdir
,
.
llseek
=
default
_llseek
,
.
iterate
_shared
=
proc_root_readdir
,
.
llseek
=
generic_file
_llseek
,
};
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment