]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
cachefiles: Add cache error reporting macro
authorDavid Howells <dhowells@redhat.com>
Thu, 21 Oct 2021 08:08:54 +0000 (09:08 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 16:23:41 +0000 (16:23 +0000)
commitc05eac9b9cd4aa7b8320ad6382f8cbc6aaf64e3d
tree3f15afd9cfc4f5d2bede9cba7b405a0b41ef3a97
parentbcf70c748910b39f3837b2634ae8d9356e33339a
cachefiles: Add cache error reporting macro

Add a macro to report a cache I/O error and to tell fscache that the cache
is in trouble.

Also add a pointer to the fscache cache cookie from the cachefiles_cache
struct as we need that to pass to fscache_io_error().

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
fs/cachefiles/internal.h