]> 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)
commit80d888d534ec275ff27f28a222b183816cbad9a3
treeadc861f352f06ea6c36168ec03a85bae339d8ecb
parentcfedca3cd5ff2a51996b77eeede132461dccea87
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