MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zap_prefetch_uint64

Function zap_prefetch_uint64

freebsd/contrib/openzfs/module/zfs/zap_micro.c:1072–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070}
1071
1072int
1073zap_prefetch_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
1074 int key_numints)
1075{
1076 zap_t *zap;
1077
1078 int err =
1079 zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
1080 if (err != 0)
1081 return (err);
1082 zap_name_t *zn = zap_name_alloc_uint64(zap, key, key_numints);
1083 if (zn == NULL) {
1084 zap_unlockdir(zap, FTAG);
1085 return (SET_ERROR(ENOTSUP));
1086 }
1087
1088 fzap_prefetch(zn);
1089 zap_name_free(zn);
1090 zap_unlockdir(zap, FTAG);
1091 return (err);
1092}
1093
1094int
1095zap_lookup_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,

Callers 1

ddt_zap_prefetchFunction · 0.85

Calls 5

zap_lockdirFunction · 0.85
zap_name_alloc_uint64Function · 0.85
zap_unlockdirFunction · 0.85
fzap_prefetchFunction · 0.85
zap_name_freeFunction · 0.85

Tested by

no test coverage detected