commit | 01d683a36602dbd831f61d8842b6a00ed0496de6 | [log] [tgz] |
---|---|---|
author | Steven Rostedt (Google) <rostedt@goodmis.org> | Mon Nov 14 17:20:24 2022 -0500 |
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | Mon Nov 14 17:37:31 2022 -0500 |
tree | d17b663e49b98d83c126f3959677e6cbf65643ad | |
parent | 1388ed664739b89e0221e25696b525c527c560a6 [diff] |
libtracefs: Reset errno to success on EAGAIN for the flush functions The functions tracefs_cpu_flush() and tracefs_cpu_flush_write() both usually end with errno = EAGAIN. This should not be passed to the calling function, so reset it to 0. Link: https://lore.kernel.org/linux-trace-devel/20221114222024.2435776-3-rostedt@goodmis.org Fixes: 26b8893efda7c ("libtracefs: Add reading of per cpu files") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>