]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89d7f4a0d5ed3c5b8538723e2d72b43d8b0e4617
treeadc861f352f06ea6c36168ec03a85bae339d8ecb
parente8badce150dcb65f64b670168b2105e82c1f7925
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