fscache: Move fscache_cookies_seq_ops specific code under CONFIG_PROC_FS
authorYue Hu <huyue2@coolpad.com>
Sat, 2 Apr 2022 04:47:43 +0000 (12:47 +0800)
committerDavid Howells <dhowells@redhat.com>
Fri, 8 Apr 2022 22:54:37 +0000 (23:54 +0100)
commit19517e53740ec671c335f05089abe1f0720103c7
treeadc861f352f06ea6c36168ec03a85bae339d8ecb
parent2c547f299827c12244d613eb2ee3616d88f56088
fscache: Move fscache_cookies_seq_ops specific code under CONFIG_PROC_FS

fscache_cookies_seq_ops is only used in proc.c that is compiled under
enabled CONFIG_PROC_FS, so move related code under this config. The
same case exsits in internal.h.

Also, make fscache_lru_cookie_timeout static due to no user outside
of cookie.c.

Signed-off-by: Yue Hu <huyue2@coolpad.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006649.html
fs/fscache/cookie.c
fs/fscache/internal.h