Home
last modified time | relevance | path

Searched refs:klen (Results 1 – 6 of 6) sorted by relevance

/fs/afs/
Dcache.c86 uint16_t klen; in afs_cell_cache_get_key() local
90 klen = strlen(cell->name); in afs_cell_cache_get_key()
91 if (klen > bufmax) in afs_cell_cache_get_key()
94 memcpy(buffer, cell->name, klen); in afs_cell_cache_get_key()
95 return klen; in afs_cell_cache_get_key()
136 uint16_t klen; in afs_vlocation_cache_get_key() local
140 klen = strnlen(vlocation->vldb.name, sizeof(vlocation->vldb.name)); in afs_vlocation_cache_get_key()
141 if (klen > bufmax) in afs_vlocation_cache_get_key()
144 memcpy(buffer, vlocation->vldb.name, klen); in afs_vlocation_cache_get_key()
146 _leave(" = %u", klen); in afs_vlocation_cache_get_key()
[all …]
/fs/fscache/
Dfsdef.c87 unsigned klen; in fscache_fsdef_netfs_get_key() local
91 klen = strlen(netfs->name); in fscache_fsdef_netfs_get_key()
92 if (klen > bufmax) in fscache_fsdef_netfs_get_key()
95 memcpy(buffer, netfs->name, klen); in fscache_fsdef_netfs_get_key()
96 return klen; in fscache_fsdef_netfs_get_key()
/fs/jfs/
Djfs_dtree.h77 #define NDTINTERNAL(klen) (DIV_ROUND_UP((4 + (klen)), 15)) argument
136 #define NDTLEAF_LEGACY(klen) (DIV_ROUND_UP((2 + (klen)), 15)) argument
Djfs_dtree.c3596 int klen, namlen, len, rc; in dtCompare() local
3617 klen = key->namlen; in dtCompare()
3626 len = min(klen, len); in dtCompare()
3630 klen -= len; in dtCompare()
3635 while (klen > 0 && namlen > 0) { in dtCompare()
3639 len = min(klen, len); in dtCompare()
3644 klen -= len; in dtCompare()
3650 return (klen - namlen); in dtCompare()
3673 int klen, namlen, len, rc; in ciCompare() local
3696 klen = key->namlen; in ciCompare()
[all …]
/fs/9p/
Dcache.c62 uint16_t klen = 0; in v9fs_cache_session_get_key() local
69 klen = strlen(v9ses->cachetag); in v9fs_cache_session_get_key()
71 if (klen > bufmax) in v9fs_cache_session_get_key()
74 memcpy(buffer, v9ses->cachetag, klen); in v9fs_cache_session_get_key()
76 return klen; in v9fs_cache_session_get_key()
/fs/ceph/
Dcache.c140 uint16_t klen; in ceph_fscache_inode_get_key() local
143 klen = sizeof(ci->i_vino); in ceph_fscache_inode_get_key()
144 if (klen > maxbuf) in ceph_fscache_inode_get_key()
147 memcpy(buffer, &ci->i_vino, klen); in ceph_fscache_inode_get_key()
148 return klen; in ceph_fscache_inode_get_key()