diff mbox series

fscache: Select netfs stats if fscache stats are enabled

Message ID 162280352566.3319242.10615341893991206961.stgit@warthog.procyon.org.uk (mailing list archive)
State New, archived
Headers show
Series fscache: Select netfs stats if fscache stats are enabled | expand

Commit Message

David Howells June 4, 2021, 10:45 a.m. UTC
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
---

 fs/fscache/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Comments

Christian Brauner June 4, 2021, 11:36 a.m. UTC | #1
On Fri, Jun 04, 2021 at 11:45:25AM +0100, David Howells wrote:
> 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
> ---

That's helpful, thanks
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
diff mbox series

Patch

diff --git a/fs/fscache/Kconfig b/fs/fscache/Kconfig
index 427efa73b9bd..92c87d8e0913 100644
--- a/fs/fscache/Kconfig
+++ b/fs/fscache/Kconfig
@@ -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: