From: Jeff Layton <jlayton@xxxxxxxxxx> syncfs can return an error. Report one if it does. Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> --- io/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io/sync.c b/io/sync.c index c77263804a35..868cea7c051e 100644 --- a/io/sync.c +++ b/io/sync.c @@ -41,8 +41,8 @@ syncfs_f( int argc, char **argv) { - /* syncfs can't fail */ - syncfs(file->fd); + if (syncfs(file->fd) < 0) + perror("syncfs"); return 0; } #endif -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html