Commit 58f386a7 authored by David Howells's avatar David Howells
Browse files

fscache: Remove the object list procfile



Remove the object list procfile from fscache as objects will become
entirely internal to the cache.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/162431198332.2908479.5847286163455099669.stgit@warthog.procyon.org.uk/
parent 6ae9bd8b
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -38,10 +38,3 @@ config FSCACHE_DEBUG
	  enabled by setting bits in /sys/modules/fscache/parameter/debug.

	  See Documentation/filesystems/caching/fscache.rst for more information.

config FSCACHE_OBJECT_LIST
	bool "Maintain global object list for debugging purposes"
	depends on FSCACHE && PROC_FS
	help
	  Maintain a global list of active fscache objects that can be
	  retrieved through /proc/fs/fscache/objects for debugging purposes
+0 −1
Original line number Diff line number Diff line
@@ -16,6 +16,5 @@ fscache-y := \

fscache-$(CONFIG_PROC_FS) += proc.o
fscache-$(CONFIG_FSCACHE_STATS) += stats.o
fscache-$(CONFIG_FSCACHE_OBJECT_LIST) += object-list.o

obj-$(CONFIG_FSCACHE) := fscache.o
+0 −1
Original line number Diff line number Diff line
@@ -261,7 +261,6 @@ int fscache_add_cache(struct fscache_cache *cache,
	spin_lock(&cache->object_list_lock);
	list_add_tail(&ifsdef->cache_link, &cache->object_list);
	spin_unlock(&cache->object_list_lock);
	fscache_objlist_add(ifsdef);

	/* add the cache's netfs definition index object to the top level index
	 * cookie as a known backing object */
+0 −2
Original line number Diff line number Diff line
@@ -620,8 +620,6 @@ static int fscache_attach_object(struct fscache_cookie *cookie,

	/* Attach to the cookie.  The object already has a ref on it. */
	hlist_add_head(&object->cookie_link, &cookie->backing_objects);

	fscache_objlist_add(object);
	ret = 0;

cant_attach_object:
+0 −13
Original line number Diff line number Diff line
@@ -84,19 +84,6 @@ static inline bool fscache_object_congested(void)
 */
extern void fscache_enqueue_object(struct fscache_object *);

/*
 * object-list.c
 */
#ifdef CONFIG_FSCACHE_OBJECT_LIST
extern const struct proc_ops fscache_objlist_proc_ops;

extern void fscache_objlist_add(struct fscache_object *);
extern void fscache_objlist_remove(struct fscache_object *);
#else
#define fscache_objlist_add(object) do {} while(0)
#define fscache_objlist_remove(object) do {} while(0)
#endif

/*
 * operation.c
 */
Loading