Skip to content

Commit

Permalink
vfs: Add some logging to the core users of the fs_context log
Browse files Browse the repository at this point in the history
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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
David Howells authored and Al Viro committed Feb 28, 2019
1 parent e7582e1 commit 06a2ae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1467,8 +1467,10 @@ int vfs_get_tree(struct fs_context *fc)
struct super_block *sb;
int error;

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;
Expand Down
2 changes: 1 addition & 1 deletion kernel/cgroup/cgroup-v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <trace/events/cgroup.h>

#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
Expand Down

0 comments on commit 06a2ae5

Please sign in to comment.