OSDN Git Service

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, 7 Jan 2022 13:41:07 +0000 (13:41 +0000)
commit1493bf74bcf2434a840eacef60c0f56966faa11a
tree0c3bedae3dc265a28d168121918bc7e4f11f9333
parentecf5a6ce15f90d1fe6bc326c720d21fc0e73fc88
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>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/163819626562.215744.1503690975344731661.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163906927235.143852.13694625647880837563.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163967137158.1823006.2065038830569321335.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164021536053.640689.5306822604644352548.stgit@warthog.procyon.org.uk/
fs/cachefiles/internal.h