mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
fs: Convert show_fdinfo functions to void
seq_printf functions shouldn't really check the return value. Checking seq_has_overflowed() occasionally is used instead. Update vfs documentation. Link: http://lkml.kernel.org/p/e37e6e7b76acbdcc3bb4ab2a57c8f8ca1ae11b9a.1412031505.git.joe@perches.com Cc: David S. Miller <davem@davemloft.net> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Joe Perches <joe@perches.com> [ did a few clean ups ] Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
f365ef9b79
commit
a3816ab0e8
10 changed files with 63 additions and 83 deletions
|
@ -287,17 +287,14 @@ static ssize_t eventfd_write(struct file *file, const char __user *buf, size_t c
|
|||
}
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
static int eventfd_show_fdinfo(struct seq_file *m, struct file *f)
|
||||
static void eventfd_show_fdinfo(struct seq_file *m, struct file *f)
|
||||
{
|
||||
struct eventfd_ctx *ctx = f->private_data;
|
||||
int ret;
|
||||
|
||||
spin_lock_irq(&ctx->wqh.lock);
|
||||
ret = seq_printf(m, "eventfd-count: %16llx\n",
|
||||
(unsigned long long)ctx->count);
|
||||
seq_printf(m, "eventfd-count: %16llx\n",
|
||||
(unsigned long long)ctx->count);
|
||||
spin_unlock_irq(&ctx->wqh.lock);
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue