12 #define FSCACHE_DEBUG_LEVEL CACHE
13 #include <linux/module.h>
16 static uint16_t fscache_fsdef_netfs_get_key(
const void *cookie_netfs_data,
19 static uint16_t fscache_fsdef_netfs_get_aux(
const void *cookie_netfs_data,
60 .def = &fscache_fsdef_index_def,
70 .name =
"FSDEF.netfs",
72 .get_key = fscache_fsdef_netfs_get_key,
73 .get_aux = fscache_fsdef_netfs_get_aux,
74 .check_aux = fscache_fsdef_netfs_check_aux,
81 static uint16_t fscache_fsdef_netfs_get_key(
const void *cookie_netfs_data,
101 static uint16_t fscache_fsdef_netfs_get_aux(
const void *cookie_netfs_data,
122 void *cookie_netfs_data,
131 if (datalen !=
sizeof(version)) {
132 _leave(
" = OBSOLETE [dl=%d v=%zu]", datalen,
sizeof(version));
136 memcpy(&version, data,
sizeof(version));
137 if (version != netfs->
version) {
138 _leave(
" = OBSOLETE [ver=%x net=%x]", version, netfs->
version);