internal.h (32e0a9a799373f846cb4fd336cdb349096cbfc71) internal.h (de045a82e1a4e04be62718d3c2981a55150765a0)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/* General netfs cache on cache files internal defs
3 *
4 * Copyright (C) 2021 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
6 */
7
8#ifdef pr_fmt

--- 115 unchanged lines hidden (view full) ---

124 char *rootdirname; /* name of cache root directory */
125 char *secctx; /* LSM security context */
126 char *tag; /* cache binding tag */
127 refcount_t unbind_pincount;/* refcount to do daemon unbind */
128 struct xarray reqs; /* xarray of pending on-demand requests */
129 unsigned long req_id_next;
130 struct xarray ondemand_ids; /* xarray for ondemand_id allocation */
131 u32 ondemand_id_next;
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/* General netfs cache on cache files internal defs
3 *
4 * Copyright (C) 2021 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
6 */
7
8#ifdef pr_fmt

--- 115 unchanged lines hidden (view full) ---

124 char *rootdirname; /* name of cache root directory */
125 char *secctx; /* LSM security context */
126 char *tag; /* cache binding tag */
127 refcount_t unbind_pincount;/* refcount to do daemon unbind */
128 struct xarray reqs; /* xarray of pending on-demand requests */
129 unsigned long req_id_next;
130 struct xarray ondemand_ids; /* xarray for ondemand_id allocation */
131 u32 ondemand_id_next;
132 u32 msg_id_next;
132};
133
134static inline bool cachefiles_in_ondemand_mode(struct cachefiles_cache *cache)
135{
136 return IS_ENABLED(CONFIG_CACHEFILES_ONDEMAND) &&
137 test_bit(CACHEFILES_ONDEMAND_MODE, &cache->flags);
138}
139

--- 402 unchanged lines hidden ---
133};
134
135static inline bool cachefiles_in_ondemand_mode(struct cachefiles_cache *cache)
136{
137 return IS_ENABLED(CONFIG_CACHEFILES_ONDEMAND) &&
138 test_bit(CACHEFILES_ONDEMAND_MODE, &cache->flags);
139}
140

--- 402 unchanged lines hidden ---