Lines Matching refs:reclen
36 size_t reclen = FUSE_DIRENT_SIZE(dirent); in fuse_add_dirent_to_cache() local
58 if (offset + reclen > PAGE_SIZE) { in fuse_add_dirent_to_cache()
82 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache()
84 fi->rdc.size = (index << PAGE_SHIFT) + offset + reclen; in fuse_add_dirent_to_cache()
129 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local
132 if (reclen > nbytes) in parse_dirfile()
140 buf += reclen; in parse_dirfile()
141 nbytes -= reclen; in parse_dirfile()
281 size_t reclen; in parse_dirplusfile() local
288 reclen = FUSE_DIRENTPLUS_SIZE(direntplus); in parse_dirplusfile()
292 if (reclen > nbytes) in parse_dirplusfile()
309 buf += reclen; in parse_dirplusfile()
310 nbytes -= reclen; in parse_dirplusfile()
392 size_t reclen; in fuse_parse_cache() local
397 reclen = FUSE_DIRENT_SIZE(dirent); /* derefs ->namelen */ in fuse_parse_cache()
401 if (WARN_ON(reclen > nbytes)) in fuse_parse_cache()
414 ff->readdir.cache_off += reclen; in fuse_parse_cache()
416 offset += reclen; in fuse_parse_cache()