OpenCloudOS-Kernel/fs/fscache
David Howells 80a00ab834 fscache: Fix the volume collision wait condition
The condition that the waits in fscache_wait_on_volume_collision() are
waiting until are inverted.  This suddenly started happening on the
upstream kernel with something like the following appearing in dmesg when
running xfstests:

	CacheFiles: cachefiles: Inode already in use: Iafs,example.com,100055

Fix them by inverting the conditions.

Fixes: 62ab633523 ("fscache: Implement volume registration")
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/164251398010.3435901.943876048104930939.stgit@warthog.procyon.org.uk/ # v1
2022-01-21 21:36:28 +00:00
..
Kconfig fscache: Introduce new driver 2022-01-07 09:22:19 +00:00
Makefile fscache: Provide a means to begin an operation 2022-01-07 09:22:19 +00:00
cache.c fscache: Count data storage objects in a cache 2022-01-07 09:22:19 +00:00
cookie.c fscache: Add a tracepoint for cookie use/unuse 2022-01-11 22:13:01 +00:00
internal.h fscache: Provide a function to resize a cookie 2022-01-07 13:40:33 +00:00
io.c nfs: Implement cache I/O by accessing the cache directly 2022-01-10 11:53:25 +00:00
main.c fscache: Implement cookie-level access helpers 2022-01-07 09:22:19 +00:00
proc.c fscache: Implement cookie registration 2022-01-07 09:22:19 +00:00
stats.c fscache, cachefiles: Display stat of culling events 2022-01-07 13:43:18 +00:00
volume.c fscache: Fix the volume collision wait condition 2022-01-21 21:36:28 +00:00