No one uses this lock when manipulating volume cookie.
Signed-off-by: Yue Hu <[email protected]>
---
fs/fscache/volume.c | 1 -
include/linux/fscache.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/fs/fscache/volume.c b/fs/fscache/volume.c
index f2aa7dbad766..71d3a6d6d72c 100644
--- a/fs/fscache/volume.c
+++ b/fs/fscache/volume.c
@@ -224,7 +224,6 @@ static struct fscache_volume *fscache_alloc_volume(const
char *volume_key,
INIT_LIST_HEAD(&volume->proc_link);
INIT_WORK(&volume->work, fscache_create_volume_work);
refcount_set(&volume->ref, 1);
- spin_lock_init(&volume->lock);
/* Stick the length on the front of the key and pad it out to make
* hashing easier.
diff --git a/include/linux/fscache.h b/include/linux/fscache.h
index 8045497c6515..2bd63041e989 100644
--- a/include/linux/fscache.h
+++ b/include/linux/fscache.h
@@ -81,7 +81,6 @@ struct fscache_volume {
struct work_struct work;
struct fscache_cache *cache; /* The cache in which
this resides */
void *cache_priv; /* Cache private data */
- spinlock_t lock;
unsigned long flags;
#define FSCACHE_VOLUME_RELINQUISHED 0 /* Volume is being cleaned up */
#define FSCACHE_VOLUME_INVALIDATE 1 /* Volume was invalidated */
--
2.17.1
--
Linux-cachefs mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-cachefs