fscache: Introduce fscache_cookie_is_dropped()
authorYue Hu <zbestahu@gmail.com>
Wed, 25 May 2022 02:51:50 +0000 (10:51 +0800)
committerDavid Howells <dhowells@redhat.com>
Tue, 5 Jul 2022 15:12:20 +0000 (16:12 +0100)
commit5c4588aea6675b69e328d468c5b6be5127e19a79
tree5e9d06664135463136c6d3950d10287d3b78378d
parentbf17455b9cbd4b10bf30d39c047307e1d774fb1a
fscache: Introduce fscache_cookie_is_dropped()

FSCACHE_COOKIE_STATE_DROPPED will be read more than once, so let's add a
helper to avoid code duplication.

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