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
Kirill Smelkov
linux
Commits
076ccb76
Commit
076ccb76
authored
Jul 03, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs: annotate ->poll() instances
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9dd95748
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
41 additions
and
41 deletions
+41
-41
fs/cachefiles/daemon.c
fs/cachefiles/daemon.c
+3
-3
fs/coda/psdev.c
fs/coda/psdev.c
+2
-2
fs/debugfs/file.c
fs/debugfs/file.c
+1
-1
fs/dlm/plock.c
fs/dlm/plock.c
+2
-2
fs/dlm/user.c
fs/dlm/user.c
+1
-1
fs/ecryptfs/miscdev.c
fs/ecryptfs/miscdev.c
+2
-2
fs/eventfd.c
fs/eventfd.c
+2
-2
fs/eventpoll.c
fs/eventpoll.c
+1
-1
fs/fuse/dev.c
fs/fuse/dev.c
+2
-2
fs/fuse/file.c
fs/fuse/file.c
+1
-1
fs/fuse/fuse_i.h
fs/fuse/fuse_i.h
+1
-1
fs/kernfs/file.c
fs/kernfs/file.c
+1
-1
fs/notify/fanotify/fanotify_user.c
fs/notify/fanotify/fanotify_user.c
+2
-2
fs/notify/inotify/inotify_user.c
fs/notify/inotify/inotify_user.c
+2
-2
fs/ocfs2/dlmfs/dlmfs.c
fs/ocfs2/dlmfs/dlmfs.c
+2
-2
fs/orangefs/devorangefs-req.c
fs/orangefs/devorangefs-req.c
+2
-2
fs/pipe.c
fs/pipe.c
+2
-2
fs/proc/inode.c
fs/proc/inode.c
+1
-1
fs/proc/kmsg.c
fs/proc/kmsg.c
+1
-1
fs/proc/proc_sysctl.c
fs/proc/proc_sysctl.c
+2
-2
fs/proc_namespace.c
fs/proc_namespace.c
+2
-2
fs/signalfd.c
fs/signalfd.c
+2
-2
fs/timerfd.c
fs/timerfd.c
+2
-2
fs/userfaultfd.c
fs/userfaultfd.c
+2
-2
No files found.
fs/cachefiles/daemon.c
View file @
076ccb76
...
...
@@ -31,7 +31,7 @@ static ssize_t cachefiles_daemon_read(struct file *, char __user *, size_t,
loff_t
*
);
static
ssize_t
cachefiles_daemon_write
(
struct
file
*
,
const
char
__user
*
,
size_t
,
loff_t
*
);
static
unsigned
in
t
cachefiles_daemon_poll
(
struct
file
*
,
static
__poll_
t
cachefiles_daemon_poll
(
struct
file
*
,
struct
poll_table_struct
*
);
static
int
cachefiles_daemon_frun
(
struct
cachefiles_cache
*
,
char
*
);
static
int
cachefiles_daemon_fcull
(
struct
cachefiles_cache
*
,
char
*
);
...
...
@@ -291,11 +291,11 @@ static ssize_t cachefiles_daemon_write(struct file *file,
* poll for culling state
* - use POLLOUT to indicate culling state
*/
static
unsigned
in
t
cachefiles_daemon_poll
(
struct
file
*
file
,
static
__poll_
t
cachefiles_daemon_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
poll
)
{
struct
cachefiles_cache
*
cache
=
file
->
private_data
;
unsigned
in
t
mask
;
__poll_
t
mask
;
poll_wait
(
file
,
&
cache
->
daemon_pollwq
,
poll
);
mask
=
0
;
...
...
fs/coda/psdev.c
View file @
076ccb76
...
...
@@ -61,10 +61,10 @@ static struct class *coda_psdev_class;
* Device operations
*/
static
unsigned
in
t
coda_psdev_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
coda_psdev_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
venus_comm
*
vcp
=
(
struct
venus_comm
*
)
file
->
private_data
;
unsigned
in
t
mask
=
POLLOUT
|
POLLWRNORM
;
__poll_
t
mask
=
POLLOUT
|
POLLWRNORM
;
poll_wait
(
file
,
&
vcp
->
vc_waitq
,
wait
);
mutex_lock
(
&
vcp
->
vc_mutex
);
...
...
fs/debugfs/file.c
View file @
076ccb76
...
...
@@ -206,7 +206,7 @@ FULL_PROXY_FUNC(unlocked_ioctl, long, filp,
PROTO
(
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
),
ARGS
(
filp
,
cmd
,
arg
));
static
unsigned
in
t
full_proxy_poll
(
struct
file
*
filp
,
static
__poll_
t
full_proxy_poll
(
struct
file
*
filp
,
struct
poll_table_struct
*
wait
)
{
struct
dentry
*
dentry
=
F_DENTRY
(
filp
);
...
...
fs/dlm/plock.c
View file @
076ccb76
...
...
@@ -463,9 +463,9 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count,
return
count
;
}
static
unsigned
in
t
dev_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
dev_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
poll_wait
(
file
,
&
send_wq
,
wait
);
...
...
fs/dlm/user.c
View file @
076ccb76
...
...
@@ -887,7 +887,7 @@ static ssize_t device_read(struct file *file, char __user *buf, size_t count,
return
rv
;
}
static
unsigned
in
t
device_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
device_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
dlm_user_proc
*
proc
=
file
->
private_data
;
...
...
fs/ecryptfs/miscdev.c
View file @
076ccb76
...
...
@@ -38,11 +38,11 @@ static atomic_t ecryptfs_num_miscdev_opens;
*
* Returns the poll mask
*/
static
unsigned
in
t
static
__poll_
t
ecryptfs_miscdev_poll
(
struct
file
*
file
,
poll_table
*
pt
)
{
struct
ecryptfs_daemon
*
daemon
=
file
->
private_data
;
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
mutex_lock
(
&
daemon
->
mux
);
if
(
daemon
->
flags
&
ECRYPTFS_DAEMON_ZOMBIE
)
{
...
...
fs/eventfd.c
View file @
076ccb76
...
...
@@ -114,10 +114,10 @@ static int eventfd_release(struct inode *inode, struct file *file)
return
0
;
}
static
unsigned
in
t
eventfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
eventfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
eventfd_ctx
*
ctx
=
file
->
private_data
;
unsigned
in
t
events
=
0
;
__poll_
t
events
=
0
;
u64
count
;
poll_wait
(
file
,
&
ctx
->
wqh
,
wait
);
...
...
fs/eventpoll.c
View file @
076ccb76
...
...
@@ -920,7 +920,7 @@ static int ep_read_events_proc(struct eventpoll *ep, struct list_head *head,
return
0
;
}
static
unsigned
in
t
ep_eventpoll_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
ep_eventpoll_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
eventpoll
*
ep
=
file
->
private_data
;
int
depth
=
0
;
...
...
fs/fuse/dev.c
View file @
076ccb76
...
...
@@ -2004,9 +2004,9 @@ static ssize_t fuse_dev_splice_write(struct pipe_inode_info *pipe,
return
ret
;
}
static
unsigned
fuse_dev_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_t
fuse_dev_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
mask
=
POLLOUT
|
POLLWRNORM
;
__poll_t
mask
=
POLLOUT
|
POLLWRNORM
;
struct
fuse_iqueue
*
fiq
;
struct
fuse_dev
*
fud
=
fuse_get_dev
(
file
);
...
...
fs/fuse/file.c
View file @
076ccb76
...
...
@@ -2751,7 +2751,7 @@ static void fuse_register_polled_file(struct fuse_conn *fc,
spin_unlock
(
&
fc
->
lock
);
}
unsigned
fuse_file_poll
(
struct
file
*
file
,
poll_table
*
wait
)
__poll_t
fuse_file_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
fuse_file
*
ff
=
file
->
private_data
;
struct
fuse_conn
*
fc
=
ff
->
fc
;
...
...
fs/fuse/fuse_i.h
View file @
076ccb76
...
...
@@ -951,7 +951,7 @@ long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg,
unsigned
int
flags
);
long
fuse_ioctl_common
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
,
unsigned
int
flags
);
unsigned
fuse_file_poll
(
struct
file
*
file
,
poll_table
*
wait
);
__poll_t
fuse_file_poll
(
struct
file
*
file
,
poll_table
*
wait
);
int
fuse_dev_release
(
struct
inode
*
inode
,
struct
file
*
file
);
bool
fuse_write_update_size
(
struct
inode
*
inode
,
loff_t
pos
);
...
...
fs/kernfs/file.c
View file @
076ccb76
...
...
@@ -832,7 +832,7 @@ void kernfs_drain_open_files(struct kernfs_node *kn)
* to see if it supports poll (Neither 'poll' nor 'select' return
* an appropriate error code). When in doubt, set a suitable timeout value.
*/
static
unsigned
in
t
kernfs_fop_poll
(
struct
file
*
filp
,
poll_table
*
wait
)
static
__poll_
t
kernfs_fop_poll
(
struct
file
*
filp
,
poll_table
*
wait
)
{
struct
kernfs_open_file
*
of
=
kernfs_of
(
filp
);
struct
kernfs_node
*
kn
=
kernfs_dentry_node
(
filp
->
f_path
.
dentry
);
...
...
fs/notify/fanotify/fanotify_user.c
View file @
076ccb76
...
...
@@ -239,10 +239,10 @@ static ssize_t copy_event_to_user(struct fsnotify_group *group,
}
/* intofiy userspace file descriptor functions */
static
unsigned
in
t
fanotify_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
fanotify_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
fsnotify_group
*
group
=
file
->
private_data
;
in
t
ret
=
0
;
__poll_
t
ret
=
0
;
poll_wait
(
file
,
&
group
->
notification_waitq
,
wait
);
spin_lock
(
&
group
->
notification_lock
);
...
...
fs/notify/inotify/inotify_user.c
View file @
076ccb76
...
...
@@ -107,10 +107,10 @@ static inline u32 inotify_mask_to_arg(__u32 mask)
}
/* intofiy userspace file descriptor functions */
static
unsigned
in
t
inotify_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
inotify_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
fsnotify_group
*
group
=
file
->
private_data
;
in
t
ret
=
0
;
__poll_
t
ret
=
0
;
poll_wait
(
file
,
&
group
->
notification_waitq
,
wait
);
spin_lock
(
&
group
->
notification_lock
);
...
...
fs/ocfs2/dlmfs/dlmfs.c
View file @
076ccb76
...
...
@@ -220,9 +220,9 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr)
return
0
;
}
static
unsigned
in
t
dlmfs_file_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
dlmfs_file_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
in
t
event
=
0
;
__poll_
t
event
=
0
;
struct
inode
*
inode
=
file_inode
(
file
);
struct
dlmfs_inode_private
*
ip
=
DLMFS_I
(
inode
);
...
...
fs/orangefs/devorangefs-req.c
View file @
076ccb76
...
...
@@ -814,10 +814,10 @@ void orangefs_dev_cleanup(void)
ORANGEFS_REQDEVICE_NAME
);
}
static
unsigned
in
t
orangefs_devreq_poll
(
struct
file
*
file
,
static
__poll_
t
orangefs_devreq_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
poll_table
)
{
in
t
poll_revent_mask
=
0
;
__poll_
t
poll_revent_mask
=
0
;
poll_wait
(
file
,
&
orangefs_request_list_waitq
,
poll_table
);
...
...
fs/pipe.c
View file @
076ccb76
...
...
@@ -515,10 +515,10 @@ static long pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
}
/* No kernel lock held - fine */
static
unsigned
in
t
static
__poll_
t
pipe_poll
(
struct
file
*
filp
,
poll_table
*
wait
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
pipe_inode_info
*
pipe
=
filp
->
private_data
;
int
nrbufs
;
...
...
fs/proc/inode.c
View file @
076ccb76
...
...
@@ -234,7 +234,7 @@ static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t
return
rv
;
}
static
unsigned
in
t
proc_reg_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
pts
)
static
__poll_
t
proc_reg_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
pts
)
{
struct
proc_dir_entry
*
pde
=
PDE
(
file_inode
(
file
));
__poll_t
rv
=
DEFAULT_POLLMASK
;
...
...
fs/proc/kmsg.c
View file @
076ccb76
...
...
@@ -40,7 +40,7 @@ static ssize_t kmsg_read(struct file *file, char __user *buf,
return
do_syslog
(
SYSLOG_ACTION_READ
,
buf
,
count
,
SYSLOG_FROM_PROC
);
}
static
unsigned
in
t
kmsg_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
kmsg_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
poll_wait
(
file
,
&
log_wait
,
wait
);
if
(
do_syslog
(
SYSLOG_ACTION_SIZE_UNREAD
,
NULL
,
0
,
SYSLOG_FROM_PROC
))
...
...
fs/proc/proc_sysctl.c
View file @
076ccb76
...
...
@@ -630,12 +630,12 @@ static int proc_sys_open(struct inode *inode, struct file *filp)
return
0
;
}
static
unsigned
in
t
proc_sys_poll
(
struct
file
*
filp
,
poll_table
*
wait
)
static
__poll_
t
proc_sys_poll
(
struct
file
*
filp
,
poll_table
*
wait
)
{
struct
inode
*
inode
=
file_inode
(
filp
);
struct
ctl_table_header
*
head
=
grab_header
(
inode
);
struct
ctl_table
*
table
=
PROC_I
(
inode
)
->
sysctl_entry
;
unsigned
in
t
ret
=
DEFAULT_POLLMASK
;
__poll_
t
ret
=
DEFAULT_POLLMASK
;
unsigned
long
event
;
/* sysctl was unregistered */
...
...
fs/proc_namespace.c
View file @
076ccb76
...
...
@@ -18,12 +18,12 @@
#include "pnode.h"
#include "internal.h"
static
unsigned
mounts_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_t
mounts_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
seq_file
*
m
=
file
->
private_data
;
struct
proc_mounts
*
p
=
m
->
private
;
struct
mnt_namespace
*
ns
=
p
->
ns
;
unsigned
res
=
POLLIN
|
POLLRDNORM
;
__poll_t
res
=
POLLIN
|
POLLRDNORM
;
int
event
;
poll_wait
(
file
,
&
p
->
ns
->
poll
,
wait
);
...
...
fs/signalfd.c
View file @
076ccb76
...
...
@@ -58,10 +58,10 @@ static int signalfd_release(struct inode *inode, struct file *file)
return
0
;
}
static
unsigned
in
t
signalfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
signalfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
signalfd_ctx
*
ctx
=
file
->
private_data
;
unsigned
in
t
events
=
0
;
__poll_
t
events
=
0
;
poll_wait
(
file
,
&
current
->
sighand
->
signalfd_wqh
,
wait
);
...
...
fs/timerfd.c
View file @
076ccb76
...
...
@@ -227,10 +227,10 @@ static int timerfd_release(struct inode *inode, struct file *file)
return
0
;
}
static
unsigned
in
t
timerfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
timerfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
timerfd_ctx
*
ctx
=
file
->
private_data
;
unsigned
in
t
events
=
0
;
__poll_
t
events
=
0
;
unsigned
long
flags
;
poll_wait
(
file
,
&
ctx
->
wqh
,
wait
);
...
...
fs/userfaultfd.c
View file @
076ccb76
...
...
@@ -921,10 +921,10 @@ static inline struct userfaultfd_wait_queue *find_userfault_evt(
return
find_userfault_in
(
&
ctx
->
event_wqh
);
}
static
unsigned
in
t
userfaultfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
userfaultfd_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
userfaultfd_ctx
*
ctx
=
file
->
private_data
;
unsigned
in
t
ret
;
__poll_
t
ret
;
poll_wait
(
file
,
&
ctx
->
fd_wqh
,
wait
);
...
...
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