X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fs%2Fkernfs%2Ffile.c;h=fd5ce883072e6b22eabe1f01ee1836c8c777d7ee;hb=a9a08845e9acbd224e4ee466f5c1275ed50054e8;hp=c53d9cc5ae7a4eaf2a40f69305bf96928b3f3f8b;hpb=db5933225f2fe50d3b91ebbba73ed9c3b703b99a;p=linux-2.6-block.git diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c index c53d9cc5ae7a..fd5ce883072e 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c @@ -275,7 +275,7 @@ static ssize_t kernfs_fop_write(struct file *file, const char __user *user_buf, { struct kernfs_open_file *of = kernfs_of(file); const struct kernfs_ops *ops; - size_t len; + ssize_t len; char *buf; if (of->atomic_write_len) { @@ -823,7 +823,7 @@ void kernfs_drain_open_files(struct kernfs_node *kn) * the content and then you use 'poll' or 'select' to wait for * the content to change. When the content changes (assuming the * manager for the kobject supports notification), poll will - * return POLLERR|POLLPRI, and select will return the fd whether + * return EPOLLERR|EPOLLPRI, and select will return the fd whether * it is waiting for read, write, or exceptions. * Once poll/select indicates that the value has changed, you * need to close and re-open the file, or seek to 0 and read again. @@ -851,7 +851,7 @@ static __poll_t kernfs_fop_poll(struct file *filp, poll_table *wait) return DEFAULT_POLLMASK; trigger: - return DEFAULT_POLLMASK|POLLERR|POLLPRI; + return DEFAULT_POLLMASK|EPOLLERR|EPOLLPRI; } static void kernfs_notify_workfn(struct work_struct *work)