diff options
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/kmem.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_message.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/fs/xfs/kmem.c b/fs/xfs/kmem.c index 535c13677e7a..686ba6fb20dd 100644 --- a/fs/xfs/kmem.c +++ b/fs/xfs/kmem.c | |||
@@ -55,9 +55,9 @@ kmem_alloc(size_t size, xfs_km_flags_t flags) | |||
55 | return ptr; | 55 | return ptr; |
56 | if (!(++retries % 100)) | 56 | if (!(++retries % 100)) |
57 | xfs_err(NULL, | 57 | xfs_err(NULL, |
58 | "%s(%u) possible memory allocation deadlock in %s (mode:0x%x)", | 58 | "%s(%u) possible memory allocation deadlock size %u in %s (mode:0x%x)", |
59 | current->comm, current->pid, | 59 | current->comm, current->pid, |
60 | __func__, lflags); | 60 | (unsigned int)size, __func__, lflags); |
61 | congestion_wait(BLK_RW_ASYNC, HZ/50); | 61 | congestion_wait(BLK_RW_ASYNC, HZ/50); |
62 | } while (1); | 62 | } while (1); |
63 | } | 63 | } |
diff --git a/fs/xfs/xfs_message.c b/fs/xfs/xfs_message.c index d8b67547ab34..11792d888e4e 100644 --- a/fs/xfs/xfs_message.c +++ b/fs/xfs/xfs_message.c | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_error.h" | ||
20 | #include "xfs_format.h" | 21 | #include "xfs_format.h" |
21 | #include "xfs_log_format.h" | 22 | #include "xfs_log_format.h" |
22 | #include "xfs_trans_resv.h" | 23 | #include "xfs_trans_resv.h" |
@@ -43,6 +44,7 @@ void func(const struct xfs_mount *mp, const char *fmt, ...) \ | |||
43 | { \ | 44 | { \ |
44 | struct va_format vaf; \ | 45 | struct va_format vaf; \ |
45 | va_list args; \ | 46 | va_list args; \ |
47 | int level; \ | ||
46 | \ | 48 | \ |
47 | va_start(args, fmt); \ | 49 | va_start(args, fmt); \ |
48 | \ | 50 | \ |
@@ -51,6 +53,11 @@ void func(const struct xfs_mount *mp, const char *fmt, ...) \ | |||
51 | \ | 53 | \ |
52 | __xfs_printk(kern_level, mp, &vaf); \ | 54 | __xfs_printk(kern_level, mp, &vaf); \ |
53 | va_end(args); \ | 55 | va_end(args); \ |
56 | \ | ||
57 | if (!kstrtoint(kern_level, 0, &level) && \ | ||
58 | level <= LOGLEVEL_ERR && \ | ||
59 | xfs_error_level >= XFS_ERRLEVEL_HIGH) \ | ||
60 | xfs_stack_trace(); \ | ||
54 | } \ | 61 | } \ |
55 | 62 | ||
56 | define_xfs_printk_level(xfs_emerg, KERN_EMERG); | 63 | define_xfs_printk_level(xfs_emerg, KERN_EMERG); |