fscache: Select netfs stats if fscache stats are enabled
authorDavid Howells <dhowells@redhat.com>
Fri, 4 Jun 2021 10:37:45 +0000 (11:37 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 25 Aug 2021 14:20:18 +0000 (15:20 +0100)
Unconditionally select the stats produced by the netfs lib if fscache stats
are enabled as the former are displayed in the latter's procfile.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Link: https://lore.kernel.org/r/162280352566.3319242.10615341893991206961.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/162431189627.2908479.9165349423842063755.stgit@warthog.procyon.org.uk/
fs/fscache/Kconfig

index 427efa73b9bdff5f146fdac59b720b8100c61bc9..92c87d8e09130a3ebc0e1b438eae6fafe1d870d1 100644 (file)
@@ -14,6 +14,7 @@ config FSCACHE
 config FSCACHE_STATS
        bool "Gather statistical information on local caching"
        depends on FSCACHE && PROC_FS
+       select NETFS_STATS
        help
          This option causes statistical information to be gathered on local
          caching and exported through file: