Searched refs:checkedlen (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/fs/jffs2/ |
D | summary.c | 436 int checkedlen; in jffs2_sum_process_sum_data() local 445 checkedlen = strnlen(spd->name, spd->nsize); in jffs2_sum_process_sum_data() 446 if (!checkedlen) { in jffs2_sum_process_sum_data() 452 if (checkedlen < spd->nsize) { in jffs2_sum_process_sum_data() 456 checkedlen); in jffs2_sum_process_sum_data() 460 fd = jffs2_alloc_full_dirent(checkedlen+1); in jffs2_sum_process_sum_data() 464 memcpy(&fd->name, spd->name, checkedlen); in jffs2_sum_process_sum_data() 465 fd->name[checkedlen] = 0; in jffs2_sum_process_sum_data() 479 fd->nhash = full_name_hash(NULL, fd->name, checkedlen); in jffs2_sum_process_sum_data()
|
D | scan.c | 1048 uint32_t checkedlen; in jffs2_scan_dirent_node() local 1070 checkedlen = strnlen(rd->name, rd->nsize); in jffs2_scan_dirent_node() 1071 if (checkedlen < rd->nsize) { in jffs2_scan_dirent_node() 1073 ofs, checkedlen); in jffs2_scan_dirent_node() 1075 fd = jffs2_alloc_full_dirent(checkedlen+1); in jffs2_scan_dirent_node() 1079 memcpy(&fd->name, rd->name, checkedlen); in jffs2_scan_dirent_node() 1080 fd->name[checkedlen] = 0; in jffs2_scan_dirent_node() 1082 crc = crc32(0, fd->name, checkedlen); in jffs2_scan_dirent_node() 1107 fd->nhash = full_name_hash(NULL, fd->name, checkedlen); in jffs2_scan_dirent_node()
|
/kernel/liteos_a/fs/jffs2/ |
D | jffs2.patch | 5769 - checkedlen = strnlen(rd->name, rd->nsize); 5770 + checkedlen = strnlen((const char *)rd->name, rd->nsize); 5771 if (checkedlen < rd->nsize) { 5773 ofs, checkedlen); 5775 memcpy(&fd->name, rd->name, checkedlen); 5776 fd->name[checkedlen] = 0; 5778 - crc = crc32(0, fd->name, checkedlen); 5787 - fd->nhash = full_name_hash(NULL, fd->name, checkedlen); 5788 + fd->nhash = full_name_hash(fd->name, checkedlen); 5948 int checkedlen; [all …]
|