]> git.baikalelectronics.ru Git - kernel.git/commit
fscache, cachefiles: Store the volume coherency data
authorDavid Howells <dhowells@redhat.com>
Tue, 14 Dec 2021 09:51:43 +0000 (09:51 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 7 Jan 2022 13:43:03 +0000 (13:43 +0000)
commit0f211154d1dd8cb1209ab72031eb1954c1dafb24
treee9772d127f0b309116bf5009b3eb7a8089b934a5
parenta135771ca437b446ff5355298789cf7614df1525
fscache, cachefiles: Store the volume coherency data

Store the volume coherency data in an xattr and check it when we rebind the
volume.  If it doesn't match the cache volume is moved to the graveyard and
rebuilt anew.

Changes
=======
ver #4:
 - Remove a couple of debugging prints.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/163967164397.1823006.2950539849831291830.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164021563138.640689.15851092065380543119.stgit@warthog.procyon.org.uk/
fs/cachefiles/internal.h
fs/cachefiles/volume.c
fs/cachefiles/xattr.c
fs/fscache/volume.c
include/linux/fscache.h
include/trace/events/cachefiles.h