Skip to content

Commit 14e6964

Browse files
committed
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: David Howells <dhowells@redhat.com>
1 parent fee096d commit 14e6964

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎fs/cachefiles/interface.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ static int cachefiles_lookup_object(struct fscache_object *_object)
147147
cachefiles_attr_changed(&object->fscache);
148148

149149
if (ret < 0 && ret != -ETIMEDOUT) {
150-
printk(KERN_WARNING "CacheFiles: Lookup failed error %d\n",
151-
ret);
150+
if (ret != -ENOBUFS)
151+
printk(KERN_WARNING
152+
"CacheFiles: Lookup failed error %d\n", ret);
152153
fscache_object_lookup_error(&object->fscache);
153154
}
154155

0 commit comments

Comments
 (0)