Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfs: Add some logging to the core users of the fs_context log

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>

authored by

David Howells and committed by
Al Viro
06a2ae56 e7582e16

+4 -2
+3 -1
fs/super.c
··· 1467 1467 struct super_block *sb; 1468 1468 int error; 1469 1469 1470 - if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source) 1470 + if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source) { 1471 + errorf(fc, "Filesystem requires source device"); 1471 1472 return -ENOENT; 1473 + } 1472 1474 1473 1475 if (fc->root) 1474 1476 return -EBUSY;
+1 -1
kernel/cgroup/cgroup-v1.c
··· 17 17 18 18 #include <trace/events/cgroup.h> 19 19 20 - #define cg_invalf(fc, fmt, ...) ({ pr_err(fmt, ## __VA_ARGS__); -EINVAL; }) 20 + #define cg_invalf(fc, fmt, ...) invalf(fc, fmt, ## __VA_ARGS__) 21 21 22 22 /* 23 23 * pidlists linger the following amount before being destroyed. The goal