diff options
Diffstat (limited to 'fs/fscache/cache.c')
-rw-r--r-- | fs/fscache/cache.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/fscache/cache.c b/fs/fscache/cache.c index f7cff367db7f..56cce7fdd39e 100644 --- a/fs/fscache/cache.c +++ b/fs/fscache/cache.c | |||
@@ -280,15 +280,15 @@ int fscache_add_cache(struct fscache_cache *cache, | |||
280 | spin_unlock(&fscache_fsdef_index.lock); | 280 | spin_unlock(&fscache_fsdef_index.lock); |
281 | up_write(&fscache_addremove_sem); | 281 | up_write(&fscache_addremove_sem); |
282 | 282 | ||
283 | printk(KERN_NOTICE "FS-Cache: Cache \"%s\" added (type %s)\n", | 283 | pr_notice("Cache \"%s\" added (type %s)\n", |
284 | cache->tag->name, cache->ops->name); | 284 | cache->tag->name, cache->ops->name); |
285 | kobject_uevent(cache->kobj, KOBJ_ADD); | 285 | kobject_uevent(cache->kobj, KOBJ_ADD); |
286 | 286 | ||
287 | _leave(" = 0 [%s]", cache->identifier); | 287 | _leave(" = 0 [%s]", cache->identifier); |
288 | return 0; | 288 | return 0; |
289 | 289 | ||
290 | tag_in_use: | 290 | tag_in_use: |
291 | printk(KERN_ERR "FS-Cache: Cache tag '%s' already in use\n", tagname); | 291 | pr_err("Cache tag '%s' already in use\n", tagname); |
292 | __fscache_release_cache_tag(tag); | 292 | __fscache_release_cache_tag(tag); |
293 | _leave(" = -EXIST"); | 293 | _leave(" = -EXIST"); |
294 | return -EEXIST; | 294 | return -EEXIST; |
@@ -317,8 +317,7 @@ EXPORT_SYMBOL(fscache_add_cache); | |||
317 | void fscache_io_error(struct fscache_cache *cache) | 317 | void fscache_io_error(struct fscache_cache *cache) |
318 | { | 318 | { |
319 | if (!test_and_set_bit(FSCACHE_IOERROR, &cache->flags)) | 319 | if (!test_and_set_bit(FSCACHE_IOERROR, &cache->flags)) |
320 | printk(KERN_ERR "FS-Cache:" | 320 | pr_err("Cache '%s' stopped due to I/O error\n", |
321 | " Cache '%s' stopped due to I/O error\n", | ||
322 | cache->ops->name); | 321 | cache->ops->name); |
323 | } | 322 | } |
324 | EXPORT_SYMBOL(fscache_io_error); | 323 | EXPORT_SYMBOL(fscache_io_error); |
@@ -369,8 +368,8 @@ void fscache_withdraw_cache(struct fscache_cache *cache) | |||
369 | 368 | ||
370 | _enter(""); | 369 | _enter(""); |
371 | 370 | ||
372 | printk(KERN_NOTICE "FS-Cache: Withdrawing cache \"%s\"\n", | 371 | pr_notice("Withdrawing cache \"%s\"\n", |
373 | cache->tag->name); | 372 | cache->tag->name); |
374 | 373 | ||
375 | /* make the cache unavailable for cookie acquisition */ | 374 | /* make the cache unavailable for cookie acquisition */ |
376 | if (test_and_set_bit(FSCACHE_CACHE_WITHDRAWN, &cache->flags)) | 375 | if (test_and_set_bit(FSCACHE_CACHE_WITHDRAWN, &cache->flags)) |