diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:37:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:14 -0400 |
commit | 0227d6abb378454e10d385da6a0f8b79a5b02c27 (patch) | |
tree | e85a3019e054d8cbbaa20f0b98a30653a0432701 /fs/cachefiles/bind.c | |
parent | 4e1eb88305135248ad0e927449e457df95d8d9b3 (diff) |
fs/cachefiles: replace kerror by pr_err
Also add pr_fmt in internal.h
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cachefiles/bind.c')
-rw-r--r-- | fs/cachefiles/bind.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/cachefiles/bind.c b/fs/cachefiles/bind.c index c7f3dd2b79dd..d749731dc0ee 100644 --- a/fs/cachefiles/bind.c +++ b/fs/cachefiles/bind.c | |||
@@ -50,18 +50,18 @@ int cachefiles_daemon_bind(struct cachefiles_cache *cache, char *args) | |||
50 | cache->brun_percent < 100); | 50 | cache->brun_percent < 100); |
51 | 51 | ||
52 | if (*args) { | 52 | if (*args) { |
53 | kerror("'bind' command doesn't take an argument"); | 53 | pr_err("'bind' command doesn't take an argument"); |
54 | return -EINVAL; | 54 | return -EINVAL; |
55 | } | 55 | } |
56 | 56 | ||
57 | if (!cache->rootdirname) { | 57 | if (!cache->rootdirname) { |
58 | kerror("No cache directory specified"); | 58 | pr_err("No cache directory specified"); |
59 | return -EINVAL; | 59 | return -EINVAL; |
60 | } | 60 | } |
61 | 61 | ||
62 | /* don't permit already bound caches to be re-bound */ | 62 | /* don't permit already bound caches to be re-bound */ |
63 | if (test_bit(CACHEFILES_READY, &cache->flags)) { | 63 | if (test_bit(CACHEFILES_READY, &cache->flags)) { |
64 | kerror("Cache already bound"); | 64 | pr_err("Cache already bound"); |
65 | return -EBUSY; | 65 | return -EBUSY; |
66 | } | 66 | } |
67 | 67 | ||
@@ -228,8 +228,7 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache) | |||
228 | set_bit(CACHEFILES_READY, &cache->flags); | 228 | set_bit(CACHEFILES_READY, &cache->flags); |
229 | dput(root); | 229 | dput(root); |
230 | 230 | ||
231 | pr_info("CacheFiles: File cache on %s registered\n", | 231 | pr_info("File cache on %s registered\n", cache->cache.identifier); |
232 | cache->cache.identifier); | ||
233 | 232 | ||
234 | /* check how much space the cache has */ | 233 | /* check how much space the cache has */ |
235 | cachefiles_has_space(cache, 0, 0); | 234 | cachefiles_has_space(cache, 0, 0); |
@@ -249,7 +248,7 @@ error_open_root: | |||
249 | kmem_cache_free(cachefiles_object_jar, fsdef); | 248 | kmem_cache_free(cachefiles_object_jar, fsdef); |
250 | error_root_object: | 249 | error_root_object: |
251 | cachefiles_end_secure(cache, saved_cred); | 250 | cachefiles_end_secure(cache, saved_cred); |
252 | kerror("Failed to register: %d", ret); | 251 | pr_err("Failed to register: %d", ret); |
253 | return ret; | 252 | return ret; |
254 | } | 253 | } |
255 | 254 | ||
@@ -261,7 +260,7 @@ void cachefiles_daemon_unbind(struct cachefiles_cache *cache) | |||
261 | _enter(""); | 260 | _enter(""); |
262 | 261 | ||
263 | if (test_bit(CACHEFILES_READY, &cache->flags)) { | 262 | if (test_bit(CACHEFILES_READY, &cache->flags)) { |
264 | pr_info("CacheFiles: File cache on %s unregistering\n", | 263 | pr_info("File cache on %s unregistering\n", |
265 | cache->cache.identifier); | 264 | cache->cache.identifier); |
266 | 265 | ||
267 | fscache_withdraw_cache(&cache->cache); | 266 | fscache_withdraw_cache(&cache->cache); |