diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:35:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:35:10 -0400 |
commit | 57d326169e878a1a37b2bccd1cf81f6809ee67b9 (patch) | |
tree | 86ed74ae4dc2beaebce1c67b8459f1873b777d3a /fs/cachefiles/internal.h | |
parent | 7b215de3d0abbc4f6daf2efd19e8809af0564490 (diff) | |
parent | 0244756edc4b98c129e92c7061d9f383708cf786 (diff) |
Merge branch 'akpm' (patches from Andrew Morton) into next
Merge more updates from Andrew Morton:
- Most of the rest of MM.
This includes "mark remap_file_pages syscall as deprecated" but the
actual "replace remap_file_pages syscall with emulation" is held
back. I guess we'll need to work out when to pull the trigger on
that one.
- various minor cleanups to obscure filesystems
- the drivers/rtc queue
- hfsplus updates
- ufs, hpfs, fatfs, affs, reiserfs
- Documentation/
- signals
- procfs
- cpu hotplug
- lib/idr.c
- rapidio
- sysctl
- ipc updates
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (171 commits)
ufs: sb mutex merge + mutex_destroy
powerpc: update comments for generic idle conversion
cris: update comments for generic idle conversion
idle: remove cpu_idle() forward declarations
nbd: zero from and len fields in NBD_CMD_DISCONNECT.
mm: convert some level-less printks to pr_*
MAINTAINERS: adi-buildroot-devel is moderated
MAINTAINERS: add linux-api for review of API/ABI changes
mm/kmemleak-test.c: use pr_fmt for logging
fs/dlm/debug_fs.c: replace seq_printf by seq_puts
fs/dlm/lockspace.c: convert simple_str to kstr
fs/dlm/config.c: convert simple_str to kstr
mm: mark remap_file_pages() syscall as deprecated
mm: memcontrol: remove unnecessary memcg argument from soft limit functions
mm: memcontrol: clean up memcg zoneinfo lookup
mm/memblock.c: call kmemleak directly from memblock_(alloc|free)
mm/mempool.c: update the kmemleak stack trace for mempool allocations
lib/radix-tree.c: update the kmemleak stack trace for radix tree allocations
mm: introduce kmemleak_update_trace()
mm/kmemleak.c: use %u to print ->checksum
...
Diffstat (limited to 'fs/cachefiles/internal.h')
-rw-r--r-- | fs/cachefiles/internal.h | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/fs/cachefiles/internal.h b/fs/cachefiles/internal.h index 5349473df1b1..3d50998abf57 100644 --- a/fs/cachefiles/internal.h +++ b/fs/cachefiles/internal.h | |||
@@ -9,6 +9,13 @@ | |||
9 | * 2 of the Licence, or (at your option) any later version. | 9 | * 2 of the Licence, or (at your option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifdef pr_fmt | ||
13 | #undef pr_fmt | ||
14 | #endif | ||
15 | |||
16 | #define pr_fmt(fmt) "CacheFiles: " fmt | ||
17 | |||
18 | |||
12 | #include <linux/fscache-cache.h> | 19 | #include <linux/fscache-cache.h> |
13 | #include <linux/timer.h> | 20 | #include <linux/timer.h> |
14 | #include <linux/wait.h> | 21 | #include <linux/wait.h> |
@@ -245,11 +252,10 @@ extern int cachefiles_remove_object_xattr(struct cachefiles_cache *cache, | |||
245 | /* | 252 | /* |
246 | * error handling | 253 | * error handling |
247 | */ | 254 | */ |
248 | #define kerror(FMT, ...) printk(KERN_ERR "CacheFiles: "FMT"\n", ##__VA_ARGS__) | ||
249 | 255 | ||
250 | #define cachefiles_io_error(___cache, FMT, ...) \ | 256 | #define cachefiles_io_error(___cache, FMT, ...) \ |
251 | do { \ | 257 | do { \ |
252 | kerror("I/O Error: " FMT, ##__VA_ARGS__); \ | 258 | pr_err("I/O Error: " FMT, ##__VA_ARGS__); \ |
253 | fscache_io_error(&(___cache)->cache); \ | 259 | fscache_io_error(&(___cache)->cache); \ |
254 | set_bit(CACHEFILES_DEAD, &(___cache)->flags); \ | 260 | set_bit(CACHEFILES_DEAD, &(___cache)->flags); \ |
255 | } while (0) | 261 | } while (0) |
@@ -310,8 +316,8 @@ do { \ | |||
310 | #define ASSERT(X) \ | 316 | #define ASSERT(X) \ |
311 | do { \ | 317 | do { \ |
312 | if (unlikely(!(X))) { \ | 318 | if (unlikely(!(X))) { \ |
313 | printk(KERN_ERR "\n"); \ | 319 | pr_err("\n"); \ |
314 | printk(KERN_ERR "CacheFiles: Assertion failed\n"); \ | 320 | pr_err("Assertion failed\n"); \ |
315 | BUG(); \ | 321 | BUG(); \ |
316 | } \ | 322 | } \ |
317 | } while (0) | 323 | } while (0) |
@@ -319,9 +325,9 @@ do { \ | |||
319 | #define ASSERTCMP(X, OP, Y) \ | 325 | #define ASSERTCMP(X, OP, Y) \ |
320 | do { \ | 326 | do { \ |
321 | if (unlikely(!((X) OP (Y)))) { \ | 327 | if (unlikely(!((X) OP (Y)))) { \ |
322 | printk(KERN_ERR "\n"); \ | 328 | pr_err("\n"); \ |
323 | printk(KERN_ERR "CacheFiles: Assertion failed\n"); \ | 329 | pr_err("Assertion failed\n"); \ |
324 | printk(KERN_ERR "%lx " #OP " %lx is false\n", \ | 330 | pr_err("%lx " #OP " %lx is false\n", \ |
325 | (unsigned long)(X), (unsigned long)(Y)); \ | 331 | (unsigned long)(X), (unsigned long)(Y)); \ |
326 | BUG(); \ | 332 | BUG(); \ |
327 | } \ | 333 | } \ |
@@ -330,8 +336,8 @@ do { \ | |||
330 | #define ASSERTIF(C, X) \ | 336 | #define ASSERTIF(C, X) \ |
331 | do { \ | 337 | do { \ |
332 | if (unlikely((C) && !(X))) { \ | 338 | if (unlikely((C) && !(X))) { \ |
333 | printk(KERN_ERR "\n"); \ | 339 | pr_err("\n"); \ |
334 | printk(KERN_ERR "CacheFiles: Assertion failed\n"); \ | 340 | pr_err("Assertion failed\n"); \ |
335 | BUG(); \ | 341 | BUG(); \ |
336 | } \ | 342 | } \ |
337 | } while (0) | 343 | } while (0) |
@@ -339,9 +345,9 @@ do { \ | |||
339 | #define ASSERTIFCMP(C, X, OP, Y) \ | 345 | #define ASSERTIFCMP(C, X, OP, Y) \ |
340 | do { \ | 346 | do { \ |
341 | if (unlikely((C) && !((X) OP (Y)))) { \ | 347 | if (unlikely((C) && !((X) OP (Y)))) { \ |
342 | printk(KERN_ERR "\n"); \ | 348 | pr_err("\n"); \ |
343 | printk(KERN_ERR "CacheFiles: Assertion failed\n"); \ | 349 | pr_err("Assertion failed\n"); \ |
344 | printk(KERN_ERR "%lx " #OP " %lx is false\n", \ | 350 | pr_err("%lx " #OP " %lx is false\n", \ |
345 | (unsigned long)(X), (unsigned long)(Y)); \ | 351 | (unsigned long)(X), (unsigned long)(Y)); \ |
346 | BUG(); \ | 352 | BUG(); \ |
347 | } \ | 353 | } \ |