Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1070302imm; Fri, 27 Jul 2018 10:36:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeAhUMSZxeB2Q6E63im8GR9ZTkQDw9ZTEnGJr8cbZdXysHqY2ZH9w/FSGrN/ip+CI1bnipO X-Received: by 2002:a17:902:bc8b:: with SMTP id bb11-v6mr6788780plb.112.1532713010901; Fri, 27 Jul 2018 10:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532713010; cv=none; d=google.com; s=arc-20160816; b=BNIjrQ4QXH1oO2uvhCUSUEJOKWzFCo4v13/0yzmeJnXFshlQjjG180Mth0GxIgnf7G QUqimhJSD307VEqxz6aDxp2xByfDr/y5GMyGk4lE4AJpryRGDJ+IN9ocdISPkFCv2cFR gXGy9oM1qqUKZZ/XaLh8MXPDHP+wdjYMvsGKgpb29Z83GNvWTAXi8JBi6c4AJALizjX/ 8UL2lNqB1KUOobJ7cyoZJLut1mWSk5w7ndgpIZjRJiCazHvjoJ6xD4ezAhDMCSm9nYp6 I2Abq3eaYHRibMpAkj0ka9XaSrOFi4+cgyHNTVJHLzcxjYUixNkJUbiVS+y7AMtT1+Zq f7cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization:arc-authentication-results; bh=oJ89ARqLagFxRSztpf3Sgh7lCNYGoyjt5AqQMXbXV5Y=; b=ntUaj7bzW1b3Uv+zhMvnb9FI/Y92ybEWxlHRA8VoDeN/I8OHiS9LofW9fvQsGh9mHi Mc0k7nFMig6IMhW09ujsOng6nGG/faakEUPBlw4bPpAThIBKEvtWMTsbuIkTcKKB46P6 ztXj77dDYAZtd1bURQKhno7w/htmjoMvBweH3chQDoXafsdaW4dOBqVVqpyhygiwAHbp x7KSyELX1lMYULIbgG5ckaY7j+00mNArX49yK7mC+CGTiEj1v02mnZ61WM6fqvBqFd+6 kJ/nk8t9Th5V5SDOEckKE8hvHdIIvle33KtD6bpGkKHbMe6sPRpZ4aDzpiA5+1NG6pwT FBbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si4732800pft.235.2018.07.27.10.36.36; Fri, 27 Jul 2018 10:36:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389740AbeG0S5Z (ORCPT + 99 others); Fri, 27 Jul 2018 14:57:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40392 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388997AbeG0S5Y (ORCPT ); Fri, 27 Jul 2018 14:57:24 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B12388197011; Fri, 27 Jul 2018 17:34:30 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 184FC1C5B9; Fri, 27 Jul 2018 17:34:29 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 28/38] vfs: Add some logging to the core users of the fs_context log [ver #10] From: David Howells To: viro@zeniv.linux.org.uk Cc: torvalds@linux-foundation.org, dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 27 Jul 2018 18:34:29 +0100 Message-ID: <153271286961.9458.17662160826414071704.stgit@warthog.procyon.org.uk> In-Reply-To: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> References: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 27 Jul 2018 17:34:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 27 Jul 2018 17:34:30 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add some logging to the core users of the fs_context log so that information can be extracted from them as to the reason for failure. Signed-off-by: David Howells --- fs/super.c | 4 +++- kernel/cgroup/cgroup-v1.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/super.c b/fs/super.c index bbef5a5057c0..3fe5d12b7697 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1735,8 +1735,10 @@ int vfs_get_tree(struct fs_context *fc) struct super_block *sb; int ret; - if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source) + if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source) { + errorf(fc, "Filesystem requires source device"); return -ENOENT; + } if (fc->root) return -EBUSY; diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c index 4238a89ca721..fb721aa20aa0 100644 --- a/kernel/cgroup/cgroup-v1.c +++ b/kernel/cgroup/cgroup-v1.c @@ -17,7 +17,7 @@ #include -#define cg_invalf(fc, fmt, ...) ({ pr_err(fmt, ## __VA_ARGS__); -EINVAL; }) +#define cg_invalf(fc, fmt, ...) invalf(fc, fmt, ## __VA_ARGS__) /* * pidlists linger the following amount before being destroyed. The goal