Commit 14e69647 authored by David Howells's avatar David Howells

CacheFiles: Don't log lookup/create failing with ENOBUFS

Don't log the CacheFiles lookup/create object routined failing with ENOBUFS as
under high memory load or high cache load they can do this quite a lot.  This
error simply means that the requested object cannot be created on disk due to
lack of space, or due to failure of the backing filesystem to find sufficient
resources.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent fee096de
...@@ -147,8 +147,9 @@ static int cachefiles_lookup_object(struct fscache_object *_object) ...@@ -147,8 +147,9 @@ static int cachefiles_lookup_object(struct fscache_object *_object)
cachefiles_attr_changed(&object->fscache); cachefiles_attr_changed(&object->fscache);
if (ret < 0 && ret != -ETIMEDOUT) { if (ret < 0 && ret != -ETIMEDOUT) {
printk(KERN_WARNING "CacheFiles: Lookup failed error %d\n", if (ret != -ENOBUFS)
ret); printk(KERN_WARNING
"CacheFiles: Lookup failed error %d\n", ret);
fscache_object_lookup_error(&object->fscache); fscache_object_lookup_error(&object->fscache);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment